If i were to implement a dynamic proxy (that implements the MBean interface) with an invocation handler that was in my ModuleLoaderService ear and register that with JMX,
would that be enough for it to 'detect' the deployment context ?