Made RESTAdapter host dependent on environment.