protected SDataDefinition buildSDataDefinition(final DataDefinition dataDefinition) {
   if (isXMLDataDefinition(dataDefinition)) {
     final XMLDataDefinition xmlDataDef = (XMLDataDefinition) dataDefinition;
     final SXMLDataDefinitionBuilderFactory fact =
         BuilderFactory.get(SXMLDataDefinitionBuilderFactory.class);
     final SXMLDataDefinitionBuilder builder =
         fact.createNewXMLData(messageName)
             .setElement(xmlDataDef.getElement())
             .setNamespace(xmlDataDef.getNamespace());
     builder.setDefaultValue(
         ServerModelConvertor.convertExpression(dataDefinition.getDefaultValueExpression()));
     builder.setDescription(dataDefinition.getDescription());
     builder.setTransient(dataDefinition.isTransientData());
     return builder.done();
   } else {
     final SDataDefinitionBuilderFactory fact =
         BuilderFactory.get(SDataDefinitionBuilderFactory.class);
     SDataDefinitionBuilder builder = null;
     if (isTextDataDefinition(dataDefinition)) {
       final TextDataDefinition textDataDefinition = (TextDataDefinition) dataDefinition;
       builder =
           fact.createNewTextData(dataDefinition.getName())
               .setAsLongText(textDataDefinition.isLongText());
     } else {
       builder = fact.createNewInstance(dataDefinition.getName(), dataDefinition.getClassName());
     }
     builder.setDefaultValue(
         ServerModelConvertor.convertExpression(dataDefinition.getDefaultValueExpression()));
     builder.setDescription(dataDefinition.getDescription());
     builder.setTransient(dataDefinition.isTransientData());
     return builder.done();
   }
 }
 public SMessageEventTriggerDefinitionImpl(
     final MessageEventTriggerDefinition messageEventTrigger) {
   messageName = messageEventTrigger.getMessageName();
   correlations =
       new ArrayList<SCorrelationDefinition>(messageEventTrigger.getCorrelations().size());
   for (final CorrelationDefinition correlation : messageEventTrigger.getCorrelations()) {
     correlations.add(
         new SCorrelationDefinitionImpl(
             ServerModelConvertor.convertExpression(correlation.getKey()),
             ServerModelConvertor.convertExpression(correlation.getValue())));
   }
 }