in cdi-extension-servlet-owb/src/main/java/org/apache/aries/cdi/extension/servlet/owb/OWBServletExtension.java [162:179]
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
if (method.getDeclaringClass() == Object.class) {
switch (method.getName()) {
case "equals":
return args[0] != null &&
(proxy == args[0] || equalsAsProxy(args[0]) || Objects.equals(getContext(), args[0]));
case "hashCode":
return getOrCreateHashCode();
default:
// let delegate
}
}
try {
return method.invoke(getContext(), args);
} catch (final InvocationTargetException ite) {
throw ite.getTargetException();
}
}