/**
* returns {@link Endpoint#isV1Default()} or first endpoint for service
*/
@Override
public String get() {
Auth authResponse = auth.get();
Iterable<Endpoint> endpointsForService = authResponse.getServiceCatalog().get(apiType);
Optional<Endpoint> defaultEndpoint = tryFind(endpointsForService, new Predicate<Endpoint>() {
@Override
public boolean apply(Endpoint in) {
return in.isV1Default();
}