private Callable<Resource> getPopulateResourceCallable(
      final Resource resource, final Request request, final Predicate predicate, final Ticket ticket) {
    return new Callable<Resource>() {
      @Override
      public Resource call() throws SystemException {
        return populateResource(resource, request, predicate, ticket);
      }
    };
  }
Get a callable that can be used to populate the given resource.

@param resource  the resource to be populated
@param request   the request
@param predicate the predicate
@param ticket    a valid ticket

@return a callable that can be used to populate the given resource
ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/ThreadPoolEnabledPropertyProvider.java