code: protected static String findControllerNamePart(String pack, String uri) {
          String temp = uri.startsWith("/") ? uri.substring(1) : uri;
          temp = temp.replace("/", ".");
          if (temp.length() > pack.length())
              temp = temp.substring(pack.length() + 1);
  
          if (temp.equals("") )
              throw new ControllerException("You defined a controller package '" + pack + "', but did not specify controller name");
  
          return temp.split("\\.")[0];
      }
docs: Now that we know that this controller is under a package, need to find the controller short name.
  
  @param pack part of the package of the controller, taken from URI: value between "app.controllers" and controller name.
  @param uri  uri from request
  @return controller name