int indexOfLB = endpoint.toString().lastIndexOf(LOAD_BALANCERS);
String path = endpoint.toString().substring(0, indexOfLB + LOAD_BALANCERS.length());
builder.uri(URI.create(path + "/" + lb.id));
return builder.build();
}
catch (NullPointerException e) {
logger.warn(e, "nullpointer found parsing %s", lb);
throw e;
}