title: Notes Plugin: Where are Custom User Settings Stored?
body: <p>We've developed a custom plugin for Notes 8.5.2. It records a number of custom user preferences. The class that does so is shown below:</p>
  
  <pre><code>import java.util.prefs.Preferences;
  
  /**
   * Provides programmatic access to Windows Registry entries for this plug-in.
   */
  public class Registry 
  {
      Preferences prefs;    
  
      /**
       * Initializes a new instance of the Registry class.
       */
      public Registry()
      {
          prefs = Preferences.userNodeForPackage(Registry.class) ;    
      } 
  
      /**
       * Gets the value of a registry key.
       * 
       * @param keyName  The name of the key to return.
       * 
       * @return A string containing the value of the specified registry key. If a key with the specified name cannot be
       *         found, the return value is an empty string.
       */
      public String GetValue(String keyName)
      {
          try
          {
              return prefs.get(keyName, "NA") ;
          }
          catch(Exception err)
          {
              return  "" ;
          }
  
      }
  
      /**
       * Sets the value of a registry key.
       * 
       * @param keyName  The name of the registry key.
       * 
       * @param keyValue The new value for the registry key.
       */
      public void SetValue(String keyName, String keyValue)
      {
          try
          {
              prefs.put(keyName, keyValue);
              prefs.flush();
          }
          catch(Exception err)
          {
          }
  
      }
  }
  </code></pre>
  
  <p>A sample of the code that uses it is as follows:</p>
  
  <pre><code>Registry wr = new Registry();
  String setting1 = wr.GetValue("CustomSetting1");
  wr.SetValue("CustomSetting1", newValue);
  </code></pre>
  
  <p>Now, I've scanned the Windows Registry, and these settings do not exist. I've indexed my <em>entire</em> hard disk, and I cannot find these entries in any file. </p>
  
  <p>So, where the heck are these settings being stored?</p>