Added java thrift server code