}
public void addWarning(String msg, boolean severe) {
WGACore core = tmlContext.getwgacore();
if (!core.getWgaConfiguration().isWarningsEnabled()) {
return;
}
PageContext pageContext = tmlContext.getEnvironment().getPageContext();
ArrayList warnings = (ArrayList) pageContext.getAttribute(Base.class.getName() + ":Warnings", PageContext.REQUEST_SCOPE);
if (warnings == null) {
warnings = new ArrayList();
pageContext.setAttribute(Base.class.getName() + ":Warnings", warnings, PageContext.REQUEST_SCOPE);
}
Warning warning = new Warning(this, tmlContext, msg, severe);
warnings.add(warning);
if (core.getWgaConfiguration().isWarningsOutputOnConsole()) {
core.getLog().warn(warning.getConsoleText());
}
if (severe == true) {
cancelTag = true;
}