Call Rest Endpoint From Java