// Setup the Framework's storage area. Always clean the framework storage on first init.
// [TODO] Differentiate beetween user data and persisted bundles. Persist bundle state in the domain model.
props.put(Constants.FRAMEWORK_STORAGE_CLEAN, Constants.FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT);
String storage = (String) props.get(Constants.FRAMEWORK_STORAGE);
if (storage == null) {
ServerEnvironment environment = injectedEnvironment.getValue();
File dataDir = environment.getServerDataDir();
storage = dataDir.getAbsolutePath() + File.separator + "osgi-store";
props.put(Constants.FRAMEWORK_STORAGE, storage);
}
}