Merge pull request #254 from timiblossom/1.2

Fix NPE in restore REST call.

lgtm. committed.
Modify the version to be in sync with the branch
fixing version number
version
[Gradle Release Plugin] - pre tag commit:  '1.2.16'.
[Gradle Release Plugin] - new version commit:  '1.2.17-SNAPSHOT'.
Adding try-block to catch IllegalThreadStateException
Fixing snapshot version
Merge pull request #257 from sagarl/1.2

Adding try-block to catch IllegalThreadStateException
Add print-out statement in the try/catch to pass PMD check