code: private boolean sameAction(String first) {
      StringBuilder firstSb = new StringBuilder(Strings.substringBefore(first, "."));
      if (-1 == firstSb.lastIndexOf("!")) {
        firstSb.append("!index");
      }
      return firstSb.toString().equals(uri);
    }
docs: 去除后缀比较是否是同一个resource(action!method)
  
  @param first
  @param second