Fixed problem with REST client embedded endpoint address.