RequestProcessor processor = this.requestProcessors.get(type);
if (processor == null) {
return ProviderHelper.notfound(request);
}
WorkspaceManager wm = getWorkspaceManager(request);
CollectionAdapter adapter = wm.getCollectionAdapter(request);
Transactional transaction = adapter instanceof Transactional ? (Transactional) adapter : null;
ResponseContext response = null;
try {
transactionStart(transaction, request);
response = processor.process(request, wm, adapter);