tempDir = factory.getTempDirectory();
memoryThreshold = factory.getMemoryThreshold();
// initialize the dispatcher
dispatcher = new Dispatcher();
try {
dispatcher.addResource(RESOURCE_TYPES, METHOD_GET, RepositoryService.class, "getTypeChildren");
dispatcher.addResource(RESOURCE_TYPESDESC, METHOD_GET, RepositoryService.class, "getTypeDescendants");
dispatcher.addResource(RESOURCE_TYPE, METHOD_GET, RepositoryService.class, "getTypeDefinition");