class BBInputSetupMapperLayer {

    protected void setPlatformAndLOBIntoServiceInstance(Platform platformMSO, LineOfBusiness lineOfBusinessMSO,
            ServiceInstance serviceInstance, Map<ResourceKey, String> resourcesToBeOrchestrated) {
        String vnfId = resourcesToBeOrchestrated.get(ResourceKey.GENERIC_VNF_ID);
        if (vnfId != null && !serviceInstance.getVnfs().isEmpty()) {
            for (GenericVnf vnf : serviceInstance.getVnfs()) {
                if (vnf.getVnfId().equalsIgnoreCase(vnfId)) {
                    vnf.setPlatform(platformMSO);
                    vnf.setLineOfBusiness(lineOfBusinessMSO);
                    break;
                }
            }
        }
    }

}