code: public static void createKey(String keyName) throws RegistryException {
          int[] info = invoke(Methods.REG_CREATE_KEY_EX.get(), keyParts(keyName));
          checkError(info[InfoIndex.INFO_ERROR_CODE.get()]);
          invoke(Methods.REG_CLOSE_KEY.get(), info[InfoIndex.INFO_HANDLE.get()]);
      }
docs: Creates a key. Parent keys in the path will also be created if necessary.
  This method returns without error if the key already exists.
  
  @param keyName Key name (i.a. with parent keys) to be created.
  @throws RegistryException