public List<IclubBuildingStateBean> getBeans() { WebClient client = IclubWebHelper.createCustomClient(BASE_URL + "list"); Collection<? extends IclubBuildingStateModel> models = new ArrayList<IclubBuildingStateModel>( client.accept(MediaType.APPLICATION_JSON).getCollection(IclubBuildingStateModel.class)); client.close(); beans = new ArrayList<IclubBuildingStateBean>(); if (models != null && models.size() > 0) { for (IclubBuildingStateModel model : models) { IclubBuildingStateBean bean = IclubBuildingStateTrans.fromWStoUI(model); beans.add(bean); } } return beans; }