} else {
((PasteAttributeNode)_readStack.peek()).setValue(node);
}
_readStack.push(node);
} else {
throw new WikiFatalException("Invalid node type in copy & paste data stream");
}
} else if ((label.equals(CopyPasteConstants.ElementLabelNode)) && (attrs.length == 3) && (_databaseInfo != null)) {
int type = Integer.parseInt(this.getAttribute(attrs, CopyPasteConstants.AttributeLabelType).value());
String schemaName = this.getAttribute(attrs, CopyPasteConstants.AttributeLabelSchemaNodeName).value();
PasteNode node = null;
if (type == CopyPasteConstants.NodeTypeAttribute) {
node = new PasteAttributeNode(_databaseInfo, schemaName);
} else if (type == CopyPasteConstants.NodeTypeGroup) {
node = new PasteGroupNode(_databaseInfo, schemaName);
} else {
throw new WikiFatalException("Invalid node type in copy & paste data stream");
}
if (_root == null) {
_root = node;
} else {
((PasteGroupNode)_readStack.peek()).children().add(node);
}
_readStack.push(node);
} else {
throw new WikiFatalException("Invalid element in copy & paste data stream");
}
}