code: @SuppressWarnings("unchecked")
      public <T extends IEntity> T update(T entity) throws FMSException {
  
          IntuitMessage intuitMessage = prepareUpdate(entity);
  
          //execute interceptors
          executeInterceptors(intuitMessage);
  
          return (T) retrieveEntity(intuitMessage);
      }
docs: Method to update the record of the corresponding entity
  
  @param entity
  the entity
  @return returns upadated status
  @throws FMSException