code: private byte[] getRootItem(String rootName, String servlet) throws IOException
     {
        ByteArrayOutputStream outStream = new ByteArrayOutputStream();
  
        byte[] rootHead = getRootHeader();
        writeBytes(rootHead, outStream);
  
        byte[] rootValue = getRootValue(rootName);
        writeInt(rootValue.length / 2, outStream);
        writeBytes(rootValue, outStream);
  
        outStream.write(0);
        outStream.write(0);
  
        writeSizedString(servlet, outStream);
  
        writeZeroQWord(outStream);
  
        return outStream.toByteArray();
     }
docs: Returns the root item.
  
  @param rootName root item name.
  @param servlet servlet name.
  @return root item
  @throws IOException {@link IOException}