enhancer.setCallbackFilter(new NoOverrideCallbackFilter(GenericServiceEndpointWrapper.class));
enhancer.setCallbackTypes(new Class[]{NoOp.class, MethodInterceptor.class});
enhancer.setUseFactory(false);
ByteArrayRetrievingGeneratorStrategy strategy = new ByteArrayRetrievingGeneratorStrategy();
enhancer.setStrategy(strategy);
Class serviceEndpointClass = enhancer.createClass();
try {
module.addClass(serviceEndpointClass.getName(), strategy.getClassBytes(), deploymentContext);
} catch (IOException e) {
throw new DeploymentException("Could not write out class bytes", e);