Fixed used method getApplication
Added Rest example
Fixed codestyle
Merge pull request #98 from AntonShevchuk/master

Fixed used method getApplication