String[] endpoints = Configuration
.getArrayProperty("buckets.endpoints");
for (String endpoint : endpoints) {
ServletHolder servlet = new ServletHolder(new BucketsServlet(
Configuration.getEndpointProperties(endpoint)));
handler.addServlet(servlet, endpoint.equals("/") ? "/*"
: (endpoint + "/*"));
}