code: private WebResource getResource(String entityName) {
          WebResource resource = channel.resource(entityName);
          for (ClientFilter filter : filters) {
              resource.addFilter(filter);
          }
          return resource;
      }
docs: Gets the resource.
  
  @param entityName
  the entity name
  @return the resource