Boiler plate code for thrift server/java client for pinadoc application services