code: public static Couple<String, String> parse(String pathstub) {
          String path = pathstub, type = null;
          int dot = pathstub.lastIndexOf('.') + 1;
          int slash = pathstub.lastIndexOf('/');
          if (dot > 0 && dot > slash) {
              path = pathstub.substring(0, dot - 1);
              type = pathstub.substring(dot);
          }
          return new Couple<String, String>(path, type);
      }
docs: ** return (revised path, renderer name or null)