public class AntDelegate {
public static int process(Document xconf, String uriGroup) throws Exception {
CocoonBean cocoon = new CocoonBean();
OutputStreamListener listener = new OutputStreamListener(System.out);
cocoon.addListener(listener);
BeanConfigurator.configure(xconf, cocoon, "", uriGroup, listener);
System.out.println(CocoonBean.getProlog());
if (!cocoon.isPrecompileOnly() && cocoon.getTargetCount() ==0) {