private static HopDirective createTcpDirective(String s) {
        int posP = s.indexOf(':');
        if (posP <= 0) {
            return null;
        }
        int posS = s.indexOf('/', posP+1);
        if (posS <= posP + 1) {
            return null;
        }
        return new TcpDirective(s.substring(0, posP),
                Integer.valueOf(s.substring(posP + 1, posS)),
                s.substring(posS + 1));
    }
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