code: private void registerEntry(String ID,
                                 String source,
                                 String target,
                                 String variant,
                                 Object entry,
                                 boolean visible) {
          CaseInsensitiveString ciID = new CaseInsensitiveString(ID);
          Object[] arrayOfObj;
  
          // Store the entry within an array so it can be modified later
          if (entry instanceof Object[]) {
              arrayOfObj = (Object[])entry;
          } else {
              arrayOfObj = new Object[] { entry };
          }
  
          registry.put(ciID, arrayOfObj);
          if (visible) {
              registerSTV(source, target, variant);
              if (!availableIDs.contains(ciID)) {
                  availableIDs.add(ciID);
              }
          } else {
              removeSTV(source, target, variant);
              availableIDs.remove(ciID);
          }
      }
docs: Register an entry object (adopted) with the given ID, source,
  target, and variant strings.