public Attachment withType(String value) { setType(value); return this; }
@Override public void process(Step step) { Attachment attachment = new Attachment(); String source = writeAttachment( getAttach(), getAttachmentType() ); attachment.setTitle(getTitle()); attachment.setType(getAttachmentType()); attachment.setSource(source); step.getAttachments().add(attachment); }