class BBInputSetup implements JavaDelegate {

    protected Optional<String> getVolumeGroupIdRelatedToVfModule(GenericVnf vnf, ModelInfo modelInfo, String cloudOwner,
            String cloudRegionId, Map<ResourceKey, String> lookupKeyMap) {
        if (lookupKeyMap.get(ResourceKey.VOLUME_GROUP_ID) == null) {
            for (VolumeGroup volumeGroup : vnf.getVolumeGroups()) {
                String volumeGroupCustId =
                        bbInputSetupUtils.getAAIVolumeGroup(cloudOwner, cloudRegionId, volumeGroup.getVolumeGroupId())
                                .getModelCustomizationId();
                if (modelInfo.getModelCustomizationId().equalsIgnoreCase(volumeGroupCustId)) {
                    logger.debug("Found volume group for vfModule: " + volumeGroup.getVolumeGroupId());
                    return Optional.of(volumeGroup.getVolumeGroupId());
                }
            }
        }
        return Optional.empty();
    }

}