void createSchemas() throws RepositoryException {
NodeTypeManager manager =
session.getWorkspace().getNodeTypeManager();
NodeTypeTemplate ntt = manager.createNodeTypeTemplate();
ntt.setName("nt:mondrianschema");
//ntt.setPrimaryItemName("nt:file");
String[] str = new String[] { "nt:file" };
ntt.setDeclaredSuperTypeNames(str);
ntt.setMixin(true);
PropertyDefinitionTemplate pdt = manager.createPropertyDefinitionTemplate();
pdt.setName("schemaname");
pdt.setRequiredType(PropertyType.STRING);
pdt.isMultiple();
PropertyDefinitionTemplate pdt2 = manager.createPropertyDefinitionTemplate();
pdt2.setName("cubenames");
pdt2.setRequiredType(PropertyType.STRING);
pdt2.isMultiple();
PropertyDefinitionTemplate pdt3 = manager.createPropertyDefinitionTemplate();
pdt3.setName("jcr:data");
pdt3.setRequiredType(PropertyType.STRING);
PropertyDefinitionTemplate pdt4 = manager.createPropertyDefinitionTemplate();
pdt4.setName("owner");
pdt4.setRequiredType(PropertyType.STRING);
ntt.getPropertyDefinitionTemplates().add(pdt);
ntt.getPropertyDefinitionTemplates().add(pdt2);
ntt.getPropertyDefinitionTemplates().add(pdt3);
ntt.getPropertyDefinitionTemplates().add(pdt4);
try {
manager.registerNodeType(ntt, false);
} catch (NodeTypeExistsException e) {