Added Java server code