extracted generic get command
Merge pull request #3 from RestPack/gj/extract-generic-get-command

extracted generic get command