if (null == parser) {
properties.put(PropertyIds.NAME, f.getName());
properties.put(PropertyIds.OBJECT_TYPE_ID, CFG.getDefaultDocumentType());
} else {
parser.reset();
PropertyMapper mapper = CFG.getPropertyMapper(mimeType);
if (null == mapper)
throw new MapperException("Unknown mime type (no configuration): " + mimeType);
String typeId = mapper.getMappedTypeId();
if (null == typeId)
throw new MapperException("No CMIS type configured for mime type" + mimeType);
TypeDefinition td = session.getTypeDefinition(typeId);
if (null == td)
throw new MapperException("CMIS type " + typeId + " does not exist on server.");