if (path != null && path.startsWith(PATH_ELEMENT_SEPARATOR)) {
MojaveRoute route = (MojaveRoute)routeMap.route(path);
if (route == null) {
throw new NoMatchingRouteException(
"no matching routes were found for " + path);
}
controller = route.getController();
action = route.getAction();