in src/main/java/org/apache/sling/jmx/provider/impl/MBeanResource.java [145:167]
private Map<String, Object> getPropertiesMap() {
final Map<String, Object> result = new HashMap<String, Object>();
result.put(Constants.PROP_RESOURCE_TYPE, this.getResourceType());
result.put(Constants.PROP_RESOURCE_SUPER_TYPE, this.getResourceSuperType());
if ( this.info.getDescription() != null ) {
result.put(Constants.PROP_DESCRIPTION, this.info.getDescription());
}
result.put(Constants.PROP_CLASSNAME, this.info.getClassName());
result.put(Constants.PROP_OBJECTNAME, this.objectName.getCanonicalName());
final AttributeList values = this.getAttributes();
final Iterator iter = values.iterator();
while ( iter.hasNext() ) {
final Attribute a = (Attribute)iter.next();
final Object value = a.getValue();
if ( value != null ) {
result.put(a.getName(), value);
}
}
return result;
}