this.treeBuilder.setupNode(node, config);
node.setInternalOnly(config.getAttributeAsBoolean("internal-only", false));
// Main (with no "type" attribute) error handler: new in Cocoon 2.1, must have a generator
ProcessingNode mainHandler = null;
// 404 & 500 error handlers as in Cocoon 2.0.x, have an implicit generator
ProcessingNode error404Handler = null;
ProcessingNode error500Handler = null;
Configuration[] childConfigs = config.getChildren();
List children = new ArrayList();
for (int i = 0; i < childConfigs.length; i++) {
Configuration childConfig = childConfigs[i];