passing configlocator do custom configuration factory

Just passing the configlocator as parameter to getConfiguration method. Now we can pass and get some properties.