Here ideally instead of doing getFile you would just open the resource with `getResourceAsStream`. That way it will work if `metrics.properties` is inside a JAR as well. You'll have to refactor the code a bit to work with an InputStream instead of a File.