Create restful client for java