construct first restful java template