.directions( "inbound" )
.pattern( "*://*:*/**" + DATANODE_EXTERNAL_PATH + "/{path=**}?**" );
//TODO: If the input type is wrong it throws a NPE.
rule.addStep( "decode-query" );
match = rule.addStep( "match" );
match.pattern( "*://*:*/**" + DATANODE_EXTERNAL_PATH + "/{path=**}?{host}&{port}&{**}" );
rewrite = rule.addStep( "rewrite" );
rewrite.template( "http://{host}:{port}/{path=**}?{**}" );
rule = rules.addRule( getRole() + "/" + getName() + "/datanode/outbound" )
.directions( "outbound" )