if (taskID == null) {
throw new IllegalArgumentException("UID must not be null.");
}
// Instantiate factory
DataStorageFactory dsFactory =
SimSystem.getRegistry().instantiateFactory(dataStorageFactoryClass);
// If data storage factory could be instantiated, use it to create a data
// storage
if (dsFactory != null) {
IDataStorage dataStorage = dsFactory.create(dataStorageParameters, SimSystem.getRegistry().createContext());
dataStorage.setExperimentID(experimentID);
dataStorage.setConfigurationID(experimentID, configurationID);
dataStorage.setComputationTaskID(experimentID, configurationID,
taskID.getId());
return dataStorage;