groupDefs[0] = new DefaultGroupDefinition(GroupType.RELATIONAL, "group-field1");
groupDefs[1] = new DefaultGroupDefinition(GroupType.RELATIONAL, "group-field2");
groupDefs[2] = new DefaultGroupDefinition(GroupType.RELATIONAL, "group-field3");
final DetailFieldDefinition[] detailFields = new DetailFieldDefinition[3];
detailFields[0] = new DefaultDetailFieldDefinition("detail-field1");
detailFields[1] = new DefaultDetailFieldDefinition("detail-field2");
detailFields[2] = new DefaultDetailFieldDefinition("detail-field3");
final DefaultWizardSpecification wizardSpecification = new DefaultWizardSpecification();
wizardSpecification.setGroupDefinitions(groupDefs);
wizardSpecification.setDetailFieldDefinitions(detailFields);