in src/main/java/org/apache/sling/tenant/internal/TenantAdapterFactory.java [98:112]
public <AdapterType> AdapterType getAdapter(Object adaptable,
Class<AdapterType> type) {
if (adaptable instanceof ResourceResolver) {
return getAdapter(
((ResourceResolver) adaptable).adaptTo(Session.class), type);
}
if (adaptable instanceof Resource) {
return getAdapter(((Resource) adaptable).getPath(), type);
}
log.warn("Unable to handle adaptable {}", adaptable.getClass()
.getName());
return null;
}