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;