}
public Set<RawConfiguration> loadRawConfigurations() {
try {
Set<RawConfiguration> configs = new HashSet<RawConfiguration>();
RawConfiguration modules = new RawConfiguration();
modules.setPath(MODULES_PATH);
String contents = FileUtils.readFileToString(new File(MODULES_PATH));
String sha256 = new MessageDigestGenerator(MessageDigestGenerator.SHA_256).calcDigestString(contents);
modules.setContents(contents, sha256);
configs.add(modules);
RawConfiguration settings = new RawConfiguration();
settings.setPath(SETTINGS_PATH);
contents = FileUtils.readFileToString(new File(SETTINGS_PATH));
sha256 = new MessageDigestGenerator(MessageDigestGenerator.SHA_256).calcDigestString(contents);
settings.setContents(contents, sha256);
configs.add(settings);
return configs;
} catch (Exception e) {
throw new RuntimeException(e);
}