in src/main/java/org/apache/sling/jcr/contentloader/internal/ContentLoaderWebConsolePlugin.java [79:106]
public void service(final ServletRequest req, final ServletResponse res)
throws IOException {
Session session = null;
PrintWriter pw = res.getWriter();
try {
session = repository.loginService(null, null);
pw.print("<p class='statline ui-state-highlight'>Apache Sling JCR Content Loader");
pw.print("</p>");
pw.println("<table class='nicetable'><thead>");
pw.println("<tr><th>Bundle</th><th>Path Entries</th><th>Content Loaded Successfully?</th><th>Uninstall Paths (format: JCR workspace:path)</th></tr>");
pw.println("</thead><tbody>");
int bundleNo = 1;
for (final Bundle bundle : context.getBundles()) {
String contentHeader = bundle.getHeaders().get(PathEntry.CONTENT_HEADER);
if (contentHeader != null) {
printBundleInfoTableRow(pw, req, session, bundle, (bundleNo++ % 2 == 0));
}
}
pw.println("</tbody></table>");
} catch (RepositoryException e) {
pw.println("Error accessing the underlying repository");
e.printStackTrace(pw);
} finally {
if (session != null) {
session.logout();
}
}
}