in src/main/java/org/apache/sling/scripting/sightly/render/ObjectModel.java [547:558]
private static Method getClassMethod(Class<?> type, Method method) {
try {
Method parentMethod = type.getMethod(method.getName(), method.getParameterTypes());
parentMethod = extractMethodInheritanceChain(parentMethod.getDeclaringClass(), parentMethod);
if (parentMethod != null) {
return parentMethod;
}
} catch (NoSuchMethodException e) {
// ignore - maybe we don't have access to that method or the method does not belong to the current type
}
return null;
}