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

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

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