contentStream.setMimeType(APILocator.getFileAPI().getMimeType(fileName));
contentStream.setStream(new FileInputStream(resourceFile));
PropertiesImpl result = new PropertiesImpl();
result.addProperty(new PropertyIdImpl(PropertyIds.OBJECT_TYPE_ID, BaseTypeId.CMIS_DOCUMENT.value()));
result.addProperty(new PropertyStringImpl(PropertyIds.NAME, fileName));
if(!UtilMethods.isSet(folderId))
folderId = getdefaultHostId();
return dotRepo.createDocument(CMISUtils.REPOSITORY_ID, result,