code: private boolean matchesPath(String routePath, String pathToMatch) {
  		routePath = routePath.replaceAll(Path.VAR_REGEXP, Path.VAR_REPLACE);
  		return pathToMatch.matches("(?i)" + routePath);
  	}
docs: Helper method. Tells if the the HTTP path matches the route path.
  
  @param routePath the path defined for the route.
  @param pathToMatch the path from the HTTP request.
  
  @return true if the path matches, false otherwise.