class NetworkInfoMapper {

    public NetworkInfo map() {
        final NetworkInfo info = new NetworkInfo();
        if (network == null) {
            info.setStatus(NetworkStatus.NOTFOUND);
        } else {
            info.setName(network.getName());
            info.setId(network.getId());
            info.setStatus(this.mapStatus(network.getStatus()));
            Pair<Optional<String>, List<Integer>> result = locateVlanInformation(network);
            Optional<String> value0 = result.getValue0();
            if (value0.isPresent()) {
                info.setProvider(value0.get());
            }
            info.setVlans(result.getValue1());
            info.setSubnets(network.getSubnets());
        }
        return info;
    }

    public  NetworkInfoMapper(Network network);

}