public Object encode (final Attribute a, final java.util.Map args) throws CodingException { final org.jdom.Element elt = newElement(); elt.addContent((String)((StringAttribute)a).getValue()); return elt; }
@Override public Object getValue() { if (super.getValue() instanceof String) { String comment = (String) super.getValue(); return StringEscapeUtils.escapeHtml(comment); } else { openwfe.org.engine.workitem.StringAttribute comment = (openwfe.org.engine.workitem.StringAttribute) super.getValue(); comment.setValue(StringEscapeUtils.escapeHtml(comment.getValue().toString())); return comment; } } });