}
resourcePublisher.setDataType(service.getContainedClass());
if(service.getInformer() instanceof Proxy) {
InvocationHandler handler = Proxy.getInvocationHandler(service.getInformer());
if (handler instanceof InformerClassInvocationHandler) {
InformerClassInvocationHandler informerHandler = (InformerClassInvocationHandler) handler;
resourcePublisher.setInformerType(informerHandler.getInformerClass());
}
} else {
resourcePublisher.setInformerType(service.getInformer().getClass());
}
resourcePublisher.endPublish();