private static HashSet<Badge> restore(Bundle bundle) {
    HashSet<Badge> badges = new HashSet<Badge>();

    String[] names = bundle.getStringArray(BADGES);
    for (int i = 0; i < names.length; i++) {
      try {
        badges.add(Badge.valueOf(names[i]));
      } catch (Exception e) {
      }
    }

    return badges;
  }
 @Override
 public void restoreFromBundle(Bundle bundle) {
   super.restoreFromBundle(bundle);
   scrolls.clear();
   Collections.addAll(scrolls, bundle.getStringArray(SCROLLS));
 }