docs: public boolean createFile(final Resource resource, boolean copyTrans) throws UnauthorizedException {
          ClientResponse<String> response = null;
          try {
              final ISourceDocResource client = proxyFactory.getSourceDocResource(details.getProject(), details.getVersion());
              response = client.post(resource, null, false);
  
              final Status status = Response.Status.fromStatusCode(response.getStatus());
  
              if (status == Response.Status.CREATED) {
                  final String entity = response.getEntity();
                  if (entity.trim().length() != 0) log.info(entity);
  
                  // Run copytrans if requested
                  if (copyTrans) {
                      runCopyTrans(resource.getName(), true);
                  }
  
                  return true;
              } else if (status == Status.UNAUTHORIZED) {
                  throw new UnauthorizedException();
              } else {
                  log.error("REST call to createResource() did not complete successfully. HTTP response code was " + status.getStatusCode() +
                          ". Reason was " + status.getReasonPhrase());
              }
  
          } catch (final Exception ex) {
              log.error("Failed to create the Zanata Document", ex);
              if (ex instanceof UnauthorizedException) {
                  throw (UnauthorizedException) ex;
              }
          } finally {
              /*
               * If you are using RESTEasy client framework, and returning a Response from your service method, you will
               * explicitly need to release the connection.
               */
              if (response != null) response.releaseConnection();
  
              /* Perform a small wait to ensure zanata isn't overloaded */
              performZanataRESTCallWaiting();
          }
  
          return false;
      }