if (attachment == null) {
if (handler == null) {
	public void writeMessage(MessageExchange exchange, NormalizedMessage message, OutputStream out, String path) throws IOException, JBIException {		DataHandler handler = message.getAttachment(attachment);		if (attachment == null) {			throw new MessagingException("Could not find attachment: " + attachment);		}		InputStream is = handler.getInputStream();		FileUtil.copyInputStream(is, out);	}