Abstract out getRestUrl so can request directly against a different instance