code: public String[] explodePath() {
      final String path = getQueryPath();
      if (path.isEmpty()) {
        throw new BadRequestException("Query path is empty");
      }
      if (path.charAt(0) != '/') {
        throw new BadRequestException("Query path doesn't start with a slash");
      }
      // split may be a tad slower than other methods, but since the URIs are
      // usually pretty short and not every request will make this call, we
      // probably don't need any premature optimization
      return path.substring(1).split("/");
    }
docs: Returns the path component of the URI as an array of strings, split on the
  forward slash
  Similar to the {@link #getQueryPath} call, this returns only the path
  without the protocol, host, port or query string params. E.g.
  "/path/starts/here" will return an array of {"path", "starts", "here"}
  <p>
  Note that for maximum speed you may want to parse the query path manually.
  @return An array with 1 or more components, note the first item may be
  an empty string.
  @throws BadRequestException if the URI is empty or does not start with a
  slash
  @throws NullPointerException if the URI is null