Fix stackoverflow error

Return the map instead of a recursive call to getParameters()
Merge pull request #74 from jsight/patch-1

Fix stackoverflow error