code: public static QPath makeChildPath(final QPath parent, final QName name, final int itemIndex)
     {
  
        QPathEntry[] parentEntries = parent.getEntries();
        QPathEntry[] names = new QPathEntry[parentEntries.length + 1];
        int index = 0;
        for (QPathEntry pname : parentEntries)
        {
           names[index++] = pname;
        }
        names[index] = new QPathEntry(name.getNamespace(), name.getName(), itemIndex);
  
        QPath path = new QPath(names);
        return path;
     }
docs: Make child path using QName and Item index. <br>
  
  @param parent
  - parent QPath
  @param name
  - Item QName
  @param itemIndex
  - Item index
  @return new QPath