if (componentWizardComposite == null) {
throw new IllegalArgumentException("Component composite cannot be null");
}
ApexTriggerWizardComposite apexTriggerWizardComposite = (ApexTriggerWizardComposite) componentWizardComposite;
ApexTriggerModel apexTriggerWizardModel = (ApexTriggerModel) componentWizard.getComponentWizardModel();
Component component = apexTriggerWizardModel.getComponent();
// create metadata instance and save metadata input values
com.salesforce.ide.api.metadata.types.ApexTrigger apexTrigger =
(com.salesforce.ide.api.metadata.types.ApexTrigger) component.getDefaultMetadataExtInstance();
// save non-xml attributes
apexTriggerWizardModel.setObjectName(apexTriggerWizardComposite.getObjectName());
apexTriggerWizardModel.setOperations(selectedTriggerOperations);
if (logger.isDebugEnabled()) {
logger.debug("Created and loaded instance of '" + apexTrigger.getClass().getName() + "'");
}
}