class HeatStackAudit {

    protected Set<Vserver> createVserverSet(Resources resources, List<Resource> novaResources,
            List<Optional<Port>> neutronPortDetails) {
        Set<Vserver> vserversToAudit = new HashSet<>();
        for (Resource novaResource : novaResources) {
            Vserver auditVserver = new Vserver();
            auditVserver.setLInterfaces(new LInterfaces());
            auditVserver.setVserverId(novaResource.getPhysicalResourceId());
            Stream<Port> filteredNeutronPorts = filterNeutronPorts(novaResource, neutronPortDetails);
            filteredNeutronPorts.forEach(port -> {
                LInterface lInterface = new LInterface();
                lInterface.setInterfaceId(port.getId());
                lInterface.setInterfaceName(port.getName());
                auditVserver.getLInterfaces().getLInterface().add(lInterface);
            });
            vserversToAudit.add(auditVserver);
        }
        return vserversToAudit;
    }

}