cocoon.addListener(listener);
BeanConfigurator.configure(xconf, cocoon, "", uriGroup, listener);
System.out.println(CocoonBean.getProlog());
cocoon.initialize();
cocoon.process();
cocoon.dispose();
listener.complete();
return listener.isSuccessful() ? 0 : 1;