use java interface to go instead of http server