//rule.setFrom("^/([a-z]+)/([0-9]+)/" + i + "/$");
// rule.setTo("/blah/a/$2/");
for (int i = 0; i < 1000; i++) {
RewriteAction oRewriteAction = new RewriteAction("/blah/a/$2/", RewriteProcessing.StopProcessing); // RewriteProcessing.StopProcessing);
ConditionalAction oAction = new ConditionalAction();
oAction.getConditions().add(new UrlMatchCondition("^/([a-z]+)/([0-9]+)/" + i + "/$"));
oAction.getActions().add(oRewriteAction);
oConfiguration.getRules().add(oAction);
}
final RewriterEngine oEngine = new RewriterEngine(oConfiguration);
final MockContextFacade oMockFacade = new MockContextFacade("http://localhost/dir/999/45/");