if (frontends.size() == 0) {
getFrontend(DEFAULT_FRONTEND_KEY);
}
FrontendTemplate frontendTemplate = new FrontendTemplate();
BackendTemplate backendTemplate = new BackendTemplate();
HeaderTemplate headerTemplate = new HeaderTemplate();
headerTemplate.write(writer, null);
for (Frontend frontend : frontends.values()) {
frontendTemplate.write(writer, frontend);
}
for (Backend backend : backends.values()) {
backendTemplate.write(writer, backend);
}
}