public AbstractMessageContentBuilder constructMessageBuilder(Element messageElement) {
        AbstractMessageContentBuilder messageBuilder = null;
        
        if (messageElement != null) {
            messageBuilder = parsePayloadTemplateBuilder(messageElement);
            
            if (messageBuilder == null) {
                messageBuilder = parseScriptBuilder(messageElement);
            }
        }

        if (messageBuilder == null) {
            messageBuilder = new PayloadTemplateMessageBuilder();
        }

        if (messageElement != null && messageElement.hasAttribute("name")) {
            messageBuilder.setMessageName(messageElement.getAttribute("name"));
        }

        return messageBuilder;
    }
public AbstractMessageContentBuilder constructMessageBuilder ( Element messageElement ) { AbstractMessageContentBuilder messageBuilder = null ; if ( messageElement != null ) { messageBuilder = parsePayloadTemplateBuilder ( messageElement ) ; if ( messageBuilder == null ) { messageBuilder = parseScriptBuilder ( messageElement ) ; } } if ( messageBuilder == null ) { messageBuilder = new PayloadTemplateMessageBuilder ( ) ; } if ( messageElement != null && messageElement . hasAttribute ( "name" ) ) { messageBuilder . setMessageName ( messageElement . getAttribute ( "name" ) ) ; } return messageBuilder ; }
Static parse method taking care of basic message element parsing.

@param messageElement