I don't think you need to keep a hold of the configuration object. Instead can you do:

```
private String historyStorage;

public String getHistoryStorage {
    return historyStorage;
}

public HistoryService(...) {
    ...
    historyStorage = configuration.getString("history.storage");
    File file = new File(historyStorage);
    file.mkdirs();
}
```