if (menuStringRenderer == null) {
throw new IllegalArgumentException("Could not find a menuStringRenderer in the context, and could not find HTTP request/response objects need to create one.");
}
StringBuffer renderBuffer = new StringBuffer();
modelMenu.renderMenuString(renderBuffer, context, menuStringRenderer);
try {
writer.write(renderBuffer.toString());
} catch (IOException e) {
String errMsg = "Error rendering included menu named [" + name + "] at location [" + location + "]: " + e.toString();
Debug.logError(e, errMsg, module);