private static void initializeStorage(String name) {
   if (initializedStorage) { // recycle
     return;
   }
   String basePath = RNSConfig.getStorageDir() + FILE_SEP + name;
   File f = new File(basePath);
   if (!f.exists()) {
     if (f.mkdirs() == false) {
       RNSLog.getLog().error(basePath + " could not be created for storage.");
       return;
     }
   }
   storageDirBase = f;
   counterFile = new File(storageDirBase, "counter");
   initializedStorage = true;
 }
 protected RNSDBFile(String name) {
   logger = RNSLog.getLog();
   initializeStorage(name);
 }