cdm/src/main/java/ucar/util/prefs/XMLStore.java
static public String makeStandardFilename(String appName, String storeName) {
      // the directory
    String userHome = null;
    try {
      userHome = System.getProperty("user.home");
    } catch (Exception e) {
      System.out.println( "XMLStore.makeStandardFilename: error System.getProperty(user.home) "+e);
    }
    if (null == userHome) userHome = ".";

    String dirFilename = userHome+"/"+appName;
    File f = new File(dirFilename);
    if (!f.exists()) {
      boolean ok = f.mkdirs(); // now ready for file creation in writeXML
      if (!ok)
        System.out.println("Error creating directories: " + f.getAbsolutePath());
    }
    return dirFilename +"/"+ storeName;
  }
static public String makeStandardFilename(String appName, String storeName) {
      // the directory
    String userHome = null;
    try {
      userHome = System.getProperty("user.home");
    } catch (Exception e) {
      System.out.println( "XMLStore.makeStandardFilename: error System.getProperty(user.home) "+e);
    }
    if (null == userHome) userHome = ".";

    String dirFilename = userHome+"/"+appName;
    File f = new File(dirFilename);
    if (!f.exists()) {
      boolean ok = f.mkdirs(); // now ready for file creation in writeXML
      if (!ok)
        System.out.println("Error creating directories: " + f.getAbsolutePath());
    }
    return dirFilename +"/"+ storeName;
  }
Convenience routine for creating an XMLStore file in a standard place.

<p> Initialize:
<ol>
<li> $user.home = System.getProperty("user.home"), if not exist, use "."
<li> create directory "$(user_home)/appName/" , if not exist, create it
<li> return  "$(user_home)/appName/storeName" for use in createFromFile()
</ol>
@param appName application name
@param storeName store name
@return  standard file name