if (componentWizardComposite == null) {
throw new IllegalArgumentException("Component composite cannot be null");
}
LetterheadWizardComposite letterheadWizardComposite = (LetterheadWizardComposite) componentWizardComposite;
LetterheadModel letterheadWizardModel = (LetterheadModel) componentWizard.getComponentWizardModel();
Component component = letterheadWizardModel.getComponent();
// create metadata instance and save metadata input values
com.salesforce.ide.api.metadata.types.Letterhead letterhead =
(com.salesforce.ide.api.metadata.types.Letterhead) component.getDefaultMetadataExtInstance();
letterhead.setFullName(letterheadWizardComposite.getNameString());