BUGFIX-Do not use Method.getDeclaringClass() to determine the config interface, as this could be an inherited method. Always use the proxy class