value = node.node.get( 0 ).asText();
} else {
value = node.node.get( node.field ).asText();
}
String rule = null;
UrlRewriteFilterGroupDescriptor scope = node.scopeConfig;
//TODO: Scan the top level apply rules for the first match.
if( scope != null ) {
for( UrlRewriteFilterPathDescriptor selector : scope.getSelectors() ) {
JsonPath.Expression path = (JsonPath.Expression)selector.compiledPath( JPATH_COMPILER );
List<JsonPath.Match> matches = path.evaluate( node.scopeNode );
if( matches != null && matches.size() > 0 ) {
JsonPath.Match match = matches.get( 0 );
if( match.getNode().isTextual() ) {