class BBInputSetup implements JavaDelegate {

    protected void mapVnfcCollectionInstanceGroup(GenericVnf genericVnf, ModelInfo modelInfo, Service service) {
        VnfResourceCustomization vnfResourceCustomization = getVnfResourceCustomizationFromService(modelInfo, service);
        if (vnfResourceCustomization != null) {
            List<VnfcInstanceGroupCustomization> vnfcInstanceGroups =
                    vnfResourceCustomization.getVnfcInstanceGroupCustomizations();
            for (VnfcInstanceGroupCustomization vnfcInstanceGroupCust : vnfcInstanceGroups) {
                InstanceGroup instanceGroup = this.createInstanceGroup();
                org.onap.so.db.catalog.beans.InstanceGroup catalogInstanceGroup = bbInputSetupUtils
                        .getCatalogInstanceGroup(vnfcInstanceGroupCust.getInstanceGroup().getModelUUID());
                instanceGroup.setModelInfoInstanceGroup(
                        this.mapperLayer.mapCatalogInstanceGroupToInstanceGroup(null, catalogInstanceGroup));
                instanceGroup.getModelInfoInstanceGroup().setFunction(vnfcInstanceGroupCust.getFunction());
                instanceGroup.getModelInfoInstanceGroup().setDescription(vnfcInstanceGroupCust.getDescription());
                genericVnf.getInstanceGroups().add(instanceGroup);
            }
        }
    }

}