public void createDocument(String repositoryId, CmisPropertiesType properties, String folderId,
CmisContentStreamType contentStream, EnumVersioningState versioningState, List<String> policies,
CmisAccessControlListType addAces, CmisAccessControlListType removeAces,
Holder<CmisExtensionType> extension, Holder<String> objectId) throws CmisException {
CmisService service = null;
try {
service = getService(wsContext, repositoryId);
ExtensionsData extData = convertExtensionHolder(extension);
String id = service.createDocument(repositoryId, convert(properties), folderId, convert(contentStream),
convert(VersioningState.class, versioningState), policies, convert(addAces, null),
convert(removeAces, null), extData);
if (objectId != null) {
objectId.value = id;