Exemplo n.º 1
0
 private static ConfigStorage getConfigStorage(String scope, boolean create) {
   scope = normalizeScope(scope);
   StorageContainer container = JZBot.getCheckedStorageContainer(scope);
   ConfigStorage storage = container.getConfiguration();
   if (storage == null && create) {
     storage = container.createConfiguration();
     container.setConfiguration(storage);
   }
   return storage;
 }