Added Java example of server side implementation
Merge pull request #17 from ndtreviv/master

Added Java example of server-side implementation as requested