private static HopDirective createDirective(String s) {
        return (s.length() > 2 && s.charAt(0) == '[')
                ? ((s.charAt(s.length() - 1) == ']')
                    ? createPolicyDirective(s.substring(1, s.length() - 1))
                    : createErrorDirective("Unterminated '[' in '" + s + "'"))
                : createVerbatimDirective(s);

    }
This replaces the incredibly slow javacc RouteParser.jj. It is a has its c++ sibling and
the implementation is a a copy of the C++ version.
@author baldersheim
@since 5.2
messagebus/src/main/java/com/yahoo/messagebus/routing/RouteParser.java