throws NotExecutableException, RepositoryException {
// find a primary node type but not "nt:base"
NodeTypeIterator types = manager.getPrimaryNodeTypes();
while (types.hasNext()) {
NodeType type = types.nextNodeType();
PropertyDefinition defs[] = type.getPropertyDefinitions();
boolean hasJCRPrimaryType = false;
for (int i = 0; i < defs.length; i++) {
if (defs[i].getName().equals(jcrPrimaryType)) {
hasJCRPrimaryType = true;