}
@Override
public void appendToResponse(WOResponse response, WOContext context) {
WOComponent component = context.component();
ERAttachment attachment = (ERAttachment) _attachment.valueInComponent(component);
String attachmentUrl = "#";
if (attachment != null) {
attachmentUrl = ERAttachmentProcessor.processorForType(attachment).attachmentUrl(attachment, context.request(), context);
if (!attachment.available().booleanValue() || attachment.isNewObject()) {
response.appendContentString("<span");
ERXComponentUtilities.appendHtmlAttributes(_associations, response, component);
response.appendContentString(">");
super.appendToResponse(response, context);
response.appendContentString("</span>");