Change Static Method to Method in Configuration Class