"My Folder Type", InMemoryFolderTypeDefinition.getRootFolderType());
// create a simple string property type and
// attach the property definition to the type definition for
// document and folder type
Map<String, PropertyDefinition<?>> propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
PropertyStringDefinitionImpl prop = PropertyCreationHelper.createStringDefinition(
TEST_DOCUMENT_STRING_PROP_ID, "Sample Doc String Property");
propertyDefinitions.put(prop.getId(), prop);
cmisDocumentType.addCustomPropertyDefinitions(propertyDefinitions);
propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
prop = PropertyCreationHelper.createStringDefinition(TEST_FOLDER_STRING_PROP_ID,
"Sample Folder String Property");
propertyDefinitions.put(prop.getId(), prop);
cmisFolderType.addCustomPropertyDefinitions(propertyDefinitions);
InMemoryDocumentTypeDefinition customDocType = createCustomTypeWithStringIntProperty();
// add type to types collection
typesList.add(cmisDocumentType);