Added various checkings of null and throwing UnsupportedOperationException if it left the method no way of finding the RES settings file.