}
private static InMemoryItemTypeDefinition createItemType() {
//CMIS 1.1 create an item item type
InMemoryItemTypeDefinition cmisItemType = new InMemoryItemTypeDefinition(TEST_ITEM_TYPE_ID, "MyItemType");
// create a single String property definition
Map<String, PropertyDefinition<?>> propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
PropertyStringDefinitionImpl prop1 = PropertyCreationHelper.createStringDefinition(ITEM_STRING_PROP,
"Item String Property", Updatability.READWRITE);
propertyDefinitions.put(prop1.getId(), prop1);
cmisItemType.addCustomPropertyDefinitions(propertyDefinitions);
// add type to types collection
return cmisItemType;
}