code: @Override
    public void onInterest(Name prefix, Interest interest, Face face, long interestFilterId, InterestFilter filter) {
      logger.finer("Serving packet for: " + interest.toUri());
      
      if (interest.getChildSelector() == -1) {
        try {
          interest.getName().get(-1).toSegment();
        } catch (EncodingException e) {
          interest.setChildSelector(Interest.CHILD_SELECTOR_LEFT);
        }
      }
  
      try {
        Data data = repository.get(interest);
        data = processPipeline(data);
        face.putData(data);
      } catch (Exception e) {
        logger.log(Level.FINE, "Failed to find data satisfying: " + interest.toUri(), e);
      }
    }
docs: {@inheritDoc}