code: public Class<? extends Actor> getActorClassForPath(String path) {
          for (Route route : routes.keySet()) {
              if (route.isRegex) {
                  Pattern p = Pattern.compile(route.path);
                  Matcher m = p.matcher(path);
                  if (m.matches()) {
                      return routes.get(route);
                  }
              } else if (route.path.equals(path)) {
                  return routes.get(route);
              }
          }
          return null;
      }
docs: Retrieve a matching actor class for a specific path.
  <br/><br/>
  The method will search the routing table for a matching entry on a FIFO basis.
  
  @see #addRoute(String, Class)
  @see #addRegexRoute(String, Class)