if (schemaConf != null) {
String schemaFileName = schemaConf.getAttribute(SRC_ATTRIBUTE);
type.setSchemaDefinition(schemaFileName);
}
NodeCreatorInterface creator;
Configuration creatorConf = doctypeConf.getChild(CREATOR_ELEMENT, false);
if (creatorConf != null) {
String creatorClassName = creatorConf.getAttribute(SRC_ATTRIBUTE);
Class creatorClass = Class.forName(creatorClassName);
creator = (NodeCreatorInterface) creatorClass.newInstance();
creator.init(creatorConf, manager, getLogger());
} else {
creator = new DefaultBranchCreator();
}
type.setCreator(creator);