*/
public Object transform(Object src, String encoding, UMOEventContext context) throws TransformerException
{
String endpointAddress = endpoint.getEndpointURI().getAddress();
SmtpConnector connector = (SmtpConnector)endpoint.getConnector();
UMOMessage eventMsg = context.getMessage();
String to = eventMsg.getStringProperty(MailProperties.TO_ADDRESSES_PROPERTY, endpointAddress);
String cc = eventMsg.getStringProperty(MailProperties.CC_ADDRESSES_PROPERTY,
connector.getCcAddresses());
String bcc = eventMsg.getStringProperty(MailProperties.BCC_ADDRESSES_PROPERTY,
connector.getBccAddresses());
String from = eventMsg.getStringProperty(MailProperties.FROM_ADDRESS_PROPERTY,
connector.getFromAddress());
String replyTo = eventMsg.getStringProperty(MailProperties.REPLY_TO_ADDRESSES_PROPERTY,
connector.getReplyToAddresses());
String subject = eventMsg.getStringProperty(MailProperties.SUBJECT_PROPERTY, connector.getSubject());
String contentType = eventMsg.getStringProperty(MailProperties.CONTENT_TYPE_PROPERTY,
connector.getContentType());
Properties headers = new Properties();
Properties customHeaders = connector.getCustomHeaders();
if (customHeaders != null && !customHeaders.isEmpty())
{
headers.putAll(customHeaders);
}