private static HopDirective createPolicyDirective(String s)
    {
        int pos = s.indexOf(':');
        return (pos == -1)
                ? new PolicyDirective(s, "")
                : new PolicyDirective(s.substring(0, pos), s.substring(pos + 1).trim());
    }
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