}
@GET
@Produces(value = MediaType.TEXT_HTML)
public String getComponentInfosHtml(@Context ServletContext servletContext, @Context UriInfo uriInfo) {
ComponentServer server = new ComponentServer(URI.create("components"));
server.getComponentInfos().addAll(_remoteComponents);
for (RestComponent component : _localComponents) {
server.getComponentInfos().add(component.getInfo());
}
server.setUri(uriInfo.getBaseUri());
Multimap<Class<?>, ComponentInfo> byType = TreeMultimap.create(ORDER_CLASS, ORDER_CLASSIFIER);
for (ComponentInfo info : server.getComponentInfos()) {
byType.put(info.getType(), info);
}
FreemarkerOutputter freemarker = new FreemarkerOutputter(servletContext);
FlexiBean data = freemarker.createRootData();
data.put("componentServer", server);