Rework getConfiguration method