privilegeManager.registerPrivilege("test:privilege", false, null);
privilegeManager.registerPrivilege(
"test:aggregate", false, new String[] { "jcr:read", "test:privilege" });
NodeTypeManager nodeTypeManager = workspace.getNodeTypeManager();
NodeTypeTemplate template = nodeTypeManager.createNodeTypeTemplate();
template.setName("test:unstructured");
template.setDeclaredSuperTypeNames(
new String[] {"nt:unstructured"});
PropertyDefinitionTemplate pDef1 = nodeTypeManager.createPropertyDefinitionTemplate();
pDef1.setName("defaultString");