@Transformer(to = "{urn:switchyard-quickstart-demo:helpdesk:1.0}openTicketResponse")
    public Element transformToElement(TicketAck ticketAck) {
        StringBuilder ackXml = new StringBuilder()
                .append("<helpdesk:openTicketResponse xmlns:helpdesk=\"urn:switchyard-quickstart-demo:helpdesk:1.0\">")
                .append("<ticketAck>").append("<id>" + ticketAck.getId() + "</id>")
                .append("<received>" + ticketAck.isReceived() + "</received>").append("</ticketAck>")
                .append("</helpdesk:openTicketResponse>");
        return toElement(ackXml.toString());
    }
@ Transformer ( to = "{urn:switchyard-quickstart-demo:helpdesk:1.0}openTicketResponse" ) public Element transformToElement ( TicketAck ticketAck ) { StringBuilder ackXml = new StringBuilder ( ) . append ( "<helpdesk:openTicketResponse xmlns:helpdesk=\"urn:switchyard-quickstart-demo:helpdesk:1.0\">" ) . append ( "<ticketAck>" ) . append ( "<id>" + ticketAck . getId ( ) + "</id>" ) . append ( "<received>" + ticketAck . isReceived ( ) + "</received>" ) . append ( "</ticketAck>" ) . append ( "</helpdesk:openTicketResponse>" ) ; return toElement ( ackXml . toString ( ) ) ; }
Transform to element.

@param ticketAck the ticket ack
@return the element