/**
  * Gets the types
  *
  * @param id the id
  * @return the RewardType
  */
 @Override
 public RewardType getRewardType(long id) {
   try {
     GenericValue ret = delegator.findByPrimaryKey(ENTITY, makePk(id));
     return (ret != null ? fromGenericValue(ret) : null);
   } catch (GenericEntityException e) {
     String msg = String.format("Could not load reward type (id=%d) ?!?", id);
     LOG.error(msg);
     throw new OfbizDataException(msg, e);
   }
 }