ConfigurationMetadataKey key = ConfigurationMetadataKey.get(e.getKey()); newQuery.getHints().put(key, e.getValue()); } catch (IllegalArgumentException ignore) {
/** * Creates a singleton instance per key * * @param key String key which identifies the metadata in question. * @return Key object for the requested key */ public static ConfigurationMetadataKey get(String key) { ConfigurationMetadataKey ret = map.get(key); if (ret == null) { synchronized (ConfigurationMetadataKey.class) { ret = map.get(key); if (ret == null) { ret = new ConfigurationMetadataKey(key); map.put(key, ret); } } } return ret; }