Class<?> cls =
RootResourceClassGenerator.generateRootResourceClass(interfaze,
path,
requestMediaType,
responseMediaType);
ProxyFactory proxyFactory = ExtensibleProxyFactory.getInstance(extensionPoints);
Object proxy = proxyFactory.createProxy(interfaze, endpoint);
RootResourceClassGenerator.injectProxy(cls, proxy);
return cls;
} catch (Exception e) {
throw new ServiceRuntimeException(e);
}