@Override
public Void visitExtractedMessage(ExtractedMessage msg) {
if (runtimeMessageSource == null) {
alertSink.add(new NoMessageSourceError(msg));
}
Message tcMessage = msg.getTcMessage();
formatLine("// MSG %s=%s",
tcMessage.getId(),
CharEscapers.javaStringUnicodeEscaper().escape(
tcMessage.getOriginal().replace("\n", " ")));
StringBuilder sb = new StringBuilder("GxpTemplate.getMessage(GXP$MESSAGE_SOURCE, ");
sb.append("gxp_context.getLocale(), ");
sb.append(tcMessage.getId());
sb.append("L");
for (Expression param : msg.getParameters()) {
sb.append(", ");
sb.append(getEscapedString(param));
}