code: public <T extends IEntity> T sendEmail(T entity) throws FMSException {
          return sendEmail(entity, null);
      }
docs: Send entity via email using address associated with this entity in the system
  @param entity
  @param <T>
  @return
  @throws FMSException