JCRSessionWrapper session = JCRSessionFactory.getInstance().getCurrentUserSession(null, Locale.ENGLISH);
JCRNodeWrapper homeNode = session.getNode(FIRST_SITECONTENT_ROOT_NODE + "/home");
Resource resource = new Resource(homeNode, "html", null, Resource.CONFIGURATION_PAGE);
context.setMainResource(resource);
context.setSite(homeNode.getResolveSite());
new URLGenerator(context, resource);
SearchCriteria criteria = createSearchCriteria();
StopWatch stopWatch = new StopWatch("search");
stopWatch.start("Starting 1000 searchs");
for (int j = 0; j < 1000; j++) {