/**
  * This method is called for nested bundles (e.g. if we received a transaction with an entry that
  * was a GET search, this method is called on the bundle for the search result, that will be
  * placed in the outer bundle). This method applies the _summary and _content parameters to the
  * output of that bundle.
  *
  * <p>TODO: This isn't the most efficient way of doing this.. hopefully we can come up with
  * something better in the future.
  */
 private IBaseResource filterNestedBundle(
     RequestDetails theRequestDetails, IBaseResource theResource) {
   IParser p = getContext().newJsonParser();
   RestfulServerUtils.configureResponseParser(theRequestDetails, p);
   return p.parseResource(theResource.getClass(), p.encodeResourceToString(theResource));
 }