class BBInputSetup implements JavaDelegate {

    protected void mapCatalogVfModule(VfModule vfModule, ModelInfo modelInfo, Service service,
            String vnfModelCustomizationUUID) {
        if (modelInfo.getModelCustomizationUuid() != null) {
            modelInfo.setModelCustomizationId(modelInfo.getModelCustomizationUuid());
        }
        VnfResourceCustomization vnfResourceCustomization = null;
        for (VnfResourceCustomization resourceCust : service.getVnfCustomizations()) {
            if (resourceCust.getModelCustomizationUUID().equalsIgnoreCase(vnfModelCustomizationUUID)) {
                vnfResourceCustomization = resourceCust;
                break;
            }
        }
        VfModuleCustomization vfResourceCustomization = null;
        if (vnfResourceCustomization != null) {
            vfResourceCustomization = vnfResourceCustomization.getVfModuleCustomizations().stream() // Convert to steam
                    .filter(x -> modelInfo.getModelCustomizationId().equalsIgnoreCase(x.getModelCustomizationUUID()))// find
                    // what
                    // we
                    // want
                    .findAny() // If 'findAny' then return found
                    .orElse(null);
        }
        if (vfResourceCustomization == null) {
            vfResourceCustomization = bbInputSetupUtils
                    .getVfModuleCustomizationByModelCuztomizationUUID(modelInfo.getModelCustomizationId());
        }
        if (vfResourceCustomization != null) {
            vfModule.setModelInfoVfModule(this.mapperLayer.mapCatalogVfModuleToVfModule(vfResourceCustomization));
        }
    }

}