in src/main/java/org/apache/sling/jmx/provider/impl/MapResource.java [99:105]
public <AdapterType> AdapterType adaptTo(final Class<AdapterType> type) {
if ( type == ValueMap.class || type == Map.class ) {
final Map<String, Object> propMap = Collections.unmodifiableMap(this.properties);
return (AdapterType) new DeepReadValueMapDecorator(this, new ValueMapDecorator(propMap));
}
return super.adaptTo(type);
}