modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
public T payloadModel(final Object payload) {
        validateApplicationContext();

        if (!CollectionUtils.isEmpty(applicationContext.getBeansOfType(Marshaller.class))) {
            return payload(payload, applicationContext.getBean(Marshaller.class));
        } else if (!CollectionUtils.isEmpty(applicationContext.getBeansOfType(ObjectMapper.class))) {
            return payload(payload, applicationContext.getBean(ObjectMapper.class));
        }

        throw createUnableToFindMapperException();
    }
/**
     * Expect this message payload as model object which is marshalled to a character sequence using the default object to xml mapper that
     * is available in Spring bean application context.
     *
     * @param payload
     * @return
     */
Expect this message payload as model object which is marshalled to a character sequence using the default object to xml mapper that
is available in Spring bean application context.

@param payload
@return
Expect this message payload as model object which is marshalled to a character sequence using the default object to xml mapper that is available in Spring bean application context . @param payload @return
public T payloadModel(final Object payload) {
        validateApplicationContext();
        if (!CollectionUtils.isEmpty(applicationContext.getBeansOfType(Marshaller.class))) {
            return payload(payload, applicationContext.getBean(Marshaller.class));
        } else if (!CollectionUtils.isEmpty(applicationContext.getBeansOfType(ObjectMapper.class))) {
            return payload(payload, applicationContext.getBean(ObjectMapper.class));
        }
        throw createUnableToFindMapperException();
    }
public T payloadModel ( final Object payload ) { validateApplicationContext ( ) ; if ( ! CollectionUtils . isEmpty ( applicationContext . getBeansOfType ( Marshaller . class ) ) ) { return payload ( payload , applicationContext . getBean ( Marshaller . class ) ) ; } else if ( ! CollectionUtils . isEmpty ( applicationContext . getBeansOfType ( ObjectMapper . class ) ) ) { return payload ( payload , applicationContext . getBean ( ObjectMapper . class ) ) ; } throw createUnableToFindMapperException ( ) ; }
Expect this message payload as model object which is marshalled to a character sequence using the default object to xml mapper that
 is available in Spring bean application context.
Expect this message payload as model object which is marshalled to a character sequence using the default object to xml mapper that is available in Spring bean application context .