public static String getPage(CommandParameter commandParameter) {
    String pageName = null;
    if (commandParameter.getRequestURI().contains(FrontController.HOME_PAGE.replace("jsp", "ctrl"))) {
      return commandParameter.getContextPath() + "/" + FrontController.HOME_PAGE;
    }
    pageName = commandParameter.getRequestURI().substring(commandParameter.getContextPath().length());
    String page = pageName.replace("ctrl", "jsp");
    return page;
  }