code: public static Set<XExtension> extractExtensions(
  			Map<String, XAttribute> attributeMap) {
  		HashSet<XExtension> extensions = new HashSet<XExtension>();
  		for (XAttribute attribute : attributeMap.values()) {
  			XExtension extension = attribute.getExtension();
  			if (extension != null) {
  				extensions.add(extension);
  			}
  		}
  		return extensions;
  	}
docs: Static helper method for extracting all extensions from an attribute map.
  
  @param attributeMap
  The attribute map from which to extract extensions.
  @return The set of extensions in the attribute map.