@GET
  @Path("/get/{id}")
  @Produces("application/json")
  @Transactional(propagation = Propagation.REQUIRED)
  public IclubEntityTypeModel getById(@PathParam("id") Long id) {
    IclubEntityTypeModel model = new IclubEntityTypeModel();
    try {
      IclubEntityType bean = iclubEntityTypeDAO.findById(id);

      model = IclubEntityTypeTrans.fromORMtoWS(bean);

    } catch (Exception e) {
      LOGGER.error(e, e);
    }
    return model;
  }
  @GET
  @Path("/list")
  @Produces("application/json")
  @Transactional(propagation = Propagation.REQUIRED)
  public <T extends IclubEntityTypeModel> List<T> list() {
    List<T> ret = new ArrayList<T>();

    try {
      List batmod = iclubEntityTypeDAO.findAll();
      if (batmod != null && batmod.size() > 0) {
        for (Object object : batmod) {
          IclubEntityType bean = (IclubEntityType) object;

          IclubEntityTypeModel model = IclubEntityTypeTrans.fromORMtoWS(bean);

          ret.add((T) model);
        }
      }
    } catch (Exception e) {
      LOGGER.error(e, e);
    }

    return ret;
  }