String baseType, boolean isMixin)
throws RepositoryException {
NodeTypeManager ntm = session.getWorkspace().getNodeTypeManager();
NodeTypeTemplate ntt = ntm.createNodeTypeTemplate();
if (baseType != null) {
NodeTypeDefinition ntd = ntm.getNodeType(baseType);
ntt = ntm.createNodeTypeTemplate(ntd);
}
if ((superTypes != null) && (superTypes.length != 0)) {
ntt.setDeclaredSuperTypeNames(superTypes);