code: private MutableSecondaryTypeDefinition getSecondaryTypeDefinition(final String typeId, final boolean includePropertyDefinitions, final boolean baseType) {
  
  		final TypeDefinitionFactory factory      = TypeDefinitionFactory.newInstance();
  		final MutableSecondaryTypeDefinition def = factory.createSecondaryTypeDefinition(CmisVersion.CMIS_1_1, baseType ? null : BaseTypeId.CMIS_SECONDARY.value());
  
  		def.setIsCreatable(false);
  
  		initializeExtendedType(def, typeId);
  
  		if (!includePropertyDefinitions) {
  			def.removeAllPropertyDefinitions();
  		}
  
  		return def;
  	}
docs: ----- private methods -----