@Async @Override public Future<Void> deleteNetwork(VirtualLinkRecord vlr) throws PluginException, NotFoundException, VimException { BaseVimInstance vimInstance = this.query(vlr.getVim_id()); if (vimInstance == null) throw new NotFoundException( String.format("VimInstance with it %s not found", vlr.getVim_id())); vimBroker .getVim(vimInstance.getType()) .delete( vimInstance, vimInstance .getNetworks() .parallelStream() .filter(n -> n.getExtId().equals(vlr.getExtId())) .findFirst() .orElseThrow( () -> new NotFoundException( String.format("Network with it %s not found", vlr.getExtId())))); return new AsyncResult<>(null); }