*/
public VirtualNodeState createNodeState(VirtualNodeState parent, Name name,
NodeId id, Name nodeTypeName)
throws RepositoryException {
NodeDefId def;
try {
def = getApplicableChildNodeDef(parent, name, nodeTypeName).getId();
} catch (RepositoryException re) {
// hack, use nt:unstructured as parent
NodeTypeRegistry ntReg = getNodeTypeRegistry();