dataLocationURI.append(endpoint);
String object = path.getObject();
if (object.startsWith("/")) {
object = object.substring(1);
}
<BUG>if (!object.endsWith("/")) {
object = object.concat("/");</BUG>
}
if (object.equals("/")) {
object = "";

dataLocationURI.append(endpoint);
String object = path.getObject();
if (object.startsWith("/")) {
object = object.substring(1);
}
if (addTrailingSlash && !object.endsWith("/")) {
object = object.concat("/");
}
if (object.equals("/")) {
object = "";
