in src/main/java/org/apache/sling/scripting/esx/plugins/SimpleResourceAdapterFactory.java [39:49]
public <AdapterType> AdapterType getAdapter(Object adaptableObject, Class<AdapterType> type) {
if (type.equals(SimpleResource.class)
&& adaptableObject instanceof Resource) {
SimpleResource simpeResource = new SimpleResource((Resource) adaptableObject);
return (AdapterType) simpeResource;
} else {
return null;
}
}