Returns as a set, the comma separated values of a property

@param bundleName
the bundle name
@param key
the key of the property
@return a set of the comma separated values of a property
551285
public Set<String> getCustomBundlePropertyAsSet(String bundleName, String key) {
		Set<String> propertiesSet = new HashSet<>();
		StringTokenizer tk = new StringTokenizer(getCustomBundleProperty(bundleName, key, ""), ",");
		while (tk.hasMoreTokens())
			propertiesSet.add(tk.nextToken().trim());
		return propertiesSet;
	}
327124
public Bundler putParcelableArrayList(String key,
      ArrayList<? extends Parcelable> value) {
    bundle.putParcelableArrayList(key, value);
    return this;
  }
1016997
@NonNull
    public static Set<String> keySet(@Nullable Bundle bundle) {
        if (bundle == null) {
            return Collections.emptySet();
        }
        return bundle.keySet();
    }
346046
public String getString(String key) throws MissingResourceException {
        // Error Checking Trace.  Ensure that we got a valid key
        if (key == null) {
            if (tc.isEventEnabled()) {

                // DGH20040823: Begin fix for defect 218797 - Source provided by Tom Musta
                // String msg = messages.getString("NLS.nullKey",
                //                                 "Null lookup key passed to NLS");
                String msg = getMessages().getString("NLS.nullKey",
                                                     "Null lookup key passed to NLS");
                // DGH20040823: End fix for defect 218797 - Source provided by Tom Musta
                Tr.warning(tc, msg);
            }
            return null;
        }
        // Error Checking Trace.  Ensure that we got a valid bundle.
        if (bundle == null) {
            if (tc.isEventEnabled()) {
                // DGH20040823: Begin fix for defect 218797 - Source provided by Tom Musta
                // String msg = messages.getString("NLS.noBundles",
                //                                 "Encountered an internal error. No valid bundles.");
                String msg = getMessages().getString("NLS.noBundles",
                                                     "Encountered an internal error. No valid bundles.");
                // DGH20040823: End fix for defect 218797 - Source provided by Tom Musta
                Tr.warning(tc, msg);
            }
            throw new MissingResourceException(bundleName, bundleName, key);
        }
        // Return Code.
        String rtn = null;
        // Get the resource (string).
        rtn = bundle.getString(key);
        return rtn;
    }
1321001
public static Map<String, Object> getHeaders(Bundle b) {
	Dictionary<String, String> headers = b.getHeaders();
	Enumeration<String> keys = headers.keys();
	Enumeration<String> values = headers.elements();

	String key, value;
	Object existing;
	List<String> list;
	Map<String, Object> _headers = new HashMap<String, Object>();
	while (keys.hasMoreElements()) {
	    key = keys.nextElement();
	    value = StringUtil.unwrap(values.nextElement());
	    existing = _headers.get(key);
	    if (existing != null) {
		if (existing instanceof String) {
		    list = new ArrayList<>();
		    list.add((String) existing);
		    _headers.put(key, list);
		}
		else list = (List<String>) existing;
		list.add(value);
	    }
	    else _headers.put(key, value);
	}

	return _headers;
    }
549376
@Override
  protected Object handleGetObject(String key) {
    for (ResourceBundle b : bundles) {
      try {
        return b.getObject(key);
      } catch (MissingResourceException mre) {
        // iterate
      }
    }
    throw new MissingResourceException(null, null, key);
  }
442876
public static String getVariantBundleName(String bundleName, Map<String, String> variants,
			boolean isGeneratedResource) {

		String variantKey = getVariantKey(variants);
		return getVariantBundleName(bundleName, variantKey, isGeneratedResource);
	}
1206444
@TargetApi(21)
  public Bundler putSizeF(String key, SizeF value) {
    bundle.putSizeF(key, value);
    return this;
  }
347497
public String getKeyValue(String key){
        String keyName = keysMap.get(key);
        if (keyName != null){
            return keyName;
        }
        return ""; //key wasn't defined in keys properties file
    }
1276840
public static String getLocalizedBundleName(String bundleName, String localeKey) {

		String newName = bundleName;
		int idxSeparator = bundleName.lastIndexOf('.');
		if (StringUtils.isNotEmpty(localeKey) && idxSeparator != -1) {
			newName = bundleName.substring(0, idxSeparator);
			newName += '_' + localeKey;
			newName += bundleName.substring(idxSeparator);
		}

		return newName;
	}
130783
private static String getStringSafely(String key) {
		String resource = null;
		for (ResourceBundle bundle: bundles) {
			try {
				resource = bundle.getString(key);
			} catch (MissingResourceException mrex) {
				continue;
			}
			return resource;
		}
		return NO_MESSAGE + key;
	}
305235
public static String getBundle (String qualifiedKey)
    {
        if (!qualifiedKey.startsWith(QUAL_PREFIX)) {
            throw new IllegalArgumentException(
                qualifiedKey + " is not a fully qualified message key.");
        }

        int qsidx = qualifiedKey.indexOf(QUAL_SEP);
        if (qsidx == -1) {
            throw new IllegalArgumentException(
                qualifiedKey + " is not a valid fully qualified key.");
        }

        return qualifiedKey.substring(QUAL_PREFIX.length(), qsidx);
    }
843618
public static String[] getMultiProperty(JcrPackageDefinition pckgDef, String key) {
        String[] result = new String[0];
        try {
            Property property = pckgDef.getNode().getProperty(key);
            Value[] values = property.getValues();
            result = new String[values.length];
            for (int i = 0; i < values.length; i++) {
                result[i] = values[i].getString();
            }
        } catch (PropertyNotFoundException | PathNotFoundException pnfex) {
        } catch (RepositoryException rex) {
            LOG.error(rex.getMessage(), rex);
        }
        return result;
    }
1091221
public Map<String, List<String>> getCustomBundlePropertyAsMap(String bundleName, String key) {
		Map<String, List<String>> propertiesMap = new HashMap<>();

		StringTokenizer tk = new StringTokenizer(getCustomBundleProperty(bundleName, key, ""), ";");
		while (tk.hasMoreTokens()) {
			String[] mapEntry = tk.nextToken().trim().split(":");

			String mapKey = mapEntry[0];
			String values = mapEntry[1];
			StringTokenizer valueTk = new StringTokenizer(values, ",");
			List<String> valueList = new ArrayList<>();
			while (valueTk.hasMoreTokens()) {
				valueList.add(valueTk.nextToken().trim());
			}
			propertiesMap.put(mapKey, valueList);
		}
		return propertiesMap;
	}
995995
public ResourceBundle getBundle(final String bundleName) {
		LOG.info("Getting bundle: " + bundleName);
		return bundles.get(bundleName);
	}
1291978
public static Properties newOptions(Properties props, String key)
    {
        Properties options = new Properties();

        String csv = props.getProperty(key);
        if (csv != null)
            addOptionsTo(options, COMMA.split(csv), props);

        return options;
    }
1304748
public static String getText(String key, ResourceBundle bundle, Object... arguments)
	{
		try
		{
			String value = bundle.getString(key);

			return MessageFormat.format(value, arguments);
		}
		catch (MissingResourceException ex)
		{
			return key;
		}
	}