final List<NodeAttribute<?>> attrs = new LinkedList<>(Arrays.asList(attributes));
final CreateNodeCommand<T> command = command(CreateNodeCommand.class);
// add type information when creating a node
attrs.add(new NodeAttribute(AbstractNode.type, type.getSimpleName()));
return command.execute(attrs);
}