ParserManager pm = new ParserManager(exPolicy);
pm.setParsers(parsers);
pm.setRequest(req);
pm.select(path);
Params params = pm.getSelectedParam();
PatternParser selectedParser = pm.getSelectedParser();
logger.log(Level.FINE, "selectedParser: " + selectedParser);
if (params == null) {
throw new ResourceNotFoundException(path + "に対応するフォーマットがありません");
}
String controllerName = params.get(CONTROLLER_PLACEHOLDER_LABEL);
if (controllerName == null) {
throw new RuntimeException(selectedParser + "でコントローラが取得できません");
}
String actionName = params.get(ACTION_PLACEHOLDER_LABEL);
if (actionName == null) {
throw new RuntimeException(selectedParser + "でアクションが取得できません");
}
String fullClassName = getFullControllerClassName(controllerName, rootPackage);