private static String exceptionMessageWithTrace(Exception e) {
        StringWriter sw = new StringWriter();
        try (PrintWriter pw = new PrintWriter(sw)) {
            e.printStackTrace(pw);
            pw.flush();
        }
        return sw.toString();
    }
This method traverses the current hop looking for an instance of {@link PolicyDirective}. If one is found, this
method creates and assigns a routing context to this.

@return True if a policy was found.
messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingNode.java