if (namePathMapper != null) {
try {
nodeTypeName = namePathMapper.getOakName(nodeTypeName);
} catch (RepositoryException e) {
ParseException e2 = getSyntaxError("could not convert node type name " + nodeTypeName);
e2.initCause(e);
throw e2;
}
}
NodeState type = types.getChildNode(nodeTypeName);
if (!type.exists()) {