}
Publish publishAnnotation = (Publish) actionClass.getAnnotation(Publish.class);
if (publishAnnotation != null) {
Class publisherClass;
ActionContractPublisher publisher = null;
publisherClass = publishAnnotation.value();
try {
publisher = (ActionContractPublisher) publisherClass.newInstance();
final org.jboss.soa.esb.listeners.config.Action actionInfo = new org.jboss.soa.esb.listeners.config.Action(
action.getName(), action.getClass1(), action.getProcess(), toProperties(action.getPropertyList())) ;
if(actionInfo.getProperties().getProperty("publishContract", "true").equals("true")) {
publisher.setActionConfig(actionInfo);
// JBESB-3034
publisher = ActionContractPublisher.ProxyFactory.createContextClassLoaderProxy(publisher);
return publisher;
}
} catch (ClassCastException e) {