if (componentWizardComposite == null) {
throw new IllegalArgumentException("Component composite cannot be null");
}
ApexPageWizardComposite apexPageWizardComposite = (ApexPageWizardComposite) componentWizardComposite;
ApexPageModel apexPageWizardModel = (ApexPageModel) componentWizard.getComponentWizardModel();
Component component = apexPageWizardModel.getComponent();
// create metadata instance and save metadata input values
com.salesforce.ide.api.metadata.types.ApexPage apexPage =
(com.salesforce.ide.api.metadata.types.ApexPage) component.getDefaultMetadataExtInstance();
apexPage.setLabel(apexPageWizardComposite.getLabelString());