package com.eactive.eai.transformer.message.generator;

import com.eactive.eai.transformer.layout.Layout;
import com.eactive.eai.transformer.message.CommonEbcdicMessage;
import com.eactive.eai.transformer.message.Message;

public class CommonEbcdicMessageGenerator implements MessageGenerator {
    public Message createMessage(Layout layout, boolean initialize,
        boolean useDefault) throws Exception {
        CommonEbcdicMessage message = (CommonEbcdicMessage) layout.getRootItem();
        message = (CommonEbcdicMessage) message.clone();
        message.createObject();
        return message;
    }
}
