class BBInputSetup implements JavaDelegate {

    protected void populateInstanceGroup(BBInputSetupParameter parameter) {
        InstanceGroup instanceGroup = new InstanceGroup();
        instanceGroup.setId(parameter.getInstanceGroupId());
        instanceGroup.setInstanceGroupName(parameter.getInstanceName());
        mapCatalogInstanceGroup(instanceGroup, parameter.getModelInfo(), parameter.getService());
        parameter.getServiceInstance().getInstanceGroups().add(instanceGroup);
    }

}