The Swift storage driver loads properties from swift.properties with every action executed by the driver (e.g. when creating a temp url). The getter itself, which loads the file, is located in these lines.
Loading properties would be better suited for a class like (SystemConfig.java)[https://github.com/IQSS/dataverse/blob/develop/src/main/java/edu/harvard/iq/dataverse/util/SystemConfig.java]. Please correct me if this would not be the best place!
This also opens a bigger argument on whether swift.properties should be on a separate file than domain.xml. If not, then we could forgo the previously mentioned refactoring of the getter and move ahead with loading the configurations with System.getProperty() (à la S3 driver).