code: @SuppressWarnings("unchecked")
      public <T extends IEntity> T upload(T entity, InputStream docContent) throws FMSException {
  
          IntuitMessage intuitMessage = prepareUpload(entity, docContent);
  
          //execute interceptors
          executeInterceptors(intuitMessage);
  
          return (T) getReturnEntity(intuitMessage);
      }
docs: Method to upload the given document content for the corresponding entity
  
  @param entity the entity
  @return returns the entity
  @throws FMSException