Correct using of the class Configuration