code: public static synchronized boolean createStorage(final StorageConfiguration pStorageConfig)
          throws TTIOException {
          boolean returnVal = true;
          // if file is existing, skipping
          if (!pStorageConfig.mFile.exists() && pStorageConfig.mFile.mkdirs()) {
              returnVal =
                  IOUtils.createFolderStructure(pStorageConfig.mFile, StorageConfiguration.Paths.values());
              // serialization of the config
              StorageConfiguration.serialize(pStorageConfig);
              // if something was not correct, delete the partly created
              // substructure
              if (!returnVal) {
                  pStorageConfig.mFile.delete();
              }
              return returnVal;
          } else {
              return false;
          }
      }
docs: Creating a storage. This includes loading the storageconfiguration,
  building up the structure and preparing everything for login.
  
  
  @param pStorageConfig
  which are used for the storage, including storage location
  @return true if creation is valid, false otherwise
  @throws TTIOException
  if something odd happens within the creation process.