if(!_rename)
outputNode = node;
else {
if(node.isAttribute()) {
ResultAttributeNode result = new ResultAttributeNode((AttributeSchemaNode)_schema, node.getTimestamp());
DatabaseNodeValue value = ((DatabaseAttributeNode)node).value();
for(int i = 0; i < value.size(); i++) {
result.value().add(value.get(i));
}
outputNode = result;
} else if(node.isGroup()) {
ResultGroupNode result = new ResultGroupNode((GroupSchemaNode)_schema, node.getTimestamp());
DatabaseElementList children = ((DatabaseGroupNode)node).children();
for(int i = 0; i < children.size(); i++) {
result.children().add(children.get(i));
}
outputNode = result;
}
}