}
CmisTypeDefinitionType result = null;
if (typeDefinition instanceof DocumentTypeDefinition) {
result = new CmisTypeDocumentDefinitionType();
DocumentTypeDefinition docTypeDefintion = (DocumentTypeDefinition) typeDefinition;
((CmisTypeDocumentDefinitionType) result).setVersionable(convertBoolean(docTypeDefintion.isVersionable(),
false));
((CmisTypeDocumentDefinitionType) result).setContentStreamAllowed(convert(EnumContentStreamAllowed.class,