code: public static Operation onInbound(final Operation operation)
     {
        return new DefaultOperationBuilderInternal(operation) {
  
           @Override
           public void perform(Rewrite event, EvaluationContext context)
           {
              if (event instanceof InboundRewrite)
                 operation.perform(event, context);
           }
  
           @Override
           public String toString()
           {
              return "Operations.onInbound(" + operation + ")";
           }
        };
     }
docs: Wrap the given {@link Operation} in a new {@link InboundOperation} which will invoke the wrapped operation only
  for inbound rewrites.