Added registration functionality.
Merge branch 'master' of https://github.com/sivaprasadreddy/javaee-samples.git