private static final Map<String, Object> subsetAttributes( final CommonInfo igc, final Collection<String> keysToPreserve) { Map<String, Object> attributes = new HashMap<String, Object>(keysToPreserve.size()); for (final String key : keysToPreserve) { if (igc.hasAttribute(key)) attributes.put(key, igc.getAttribute(key)); } return attributes; }
public Object getAttribute(String key, Object defaultValue) { return commonInfo.getAttribute(key, defaultValue); }
public Object getAttribute(String key) { return commonInfo.getAttribute(key); }