code: public int add(String fragments) {
  		if (fragments == null) {
  			return 0;
  		}
  
  		final String[] splitFragments = fragments.replaceFirst("^\\/", "").split("\\/", -1);
  
  		final int n = splitFragments.length;
  		for (int i = 0; i < n; i++) {
  			pathFragments.add(splitFragments[i]);
  		}
  
  		return n;
  	}
docs: Adds the path fragments contained in the specified string. This method performs no escaping
  so reserved JSON Pointer characters should already be escaped.
  
  <p>For example, <tt>add("/foo/bar")</tt> adds two path fragments, <tt>"foo"</tt> and
  <tt>"bar"</tt>, and returns 2.</p>
  
  @param fragments the path fragments to add
  @return the number of fragments added