RestAdapter constructor takes baseURL and PipeConfig as parameters:
public RestAdapter(Class<T> klass, URL baseURL, PipeConfig config);
But it then treats baseURL as absolute URL and does not honor PipeConfig's endpoint attribute.
RestAdapter needs to act more correctly, i.e. it should build absolute URL based on baseURL and PipeConfig's endpoint attribute.