throw new DeploymentException("Could not write out class bytes", e);
} catch (URISyntaxException e) {
throw new DeploymentException("Could not constuct URI for location of enhanced class", e);
}
Enhancer.registerCallbacks(serviceClass, methodInterceptors);
FastConstructor constructor = FastClass.create(serviceClass).getConstructor(SERVICE_CONSTRUCTOR_TYPES);
try {
return constructor.newInstance(new Object[]{seiPortNameToFactoryMap, seiClassNameToFactoryMap});
} catch (InvocationTargetException e) {
throw new DeploymentException("Could not construct service instance", e.getTargetException());
}
}