class NetworkAdapterResources {

    public Optional<DeleteNetworkResponse> deleteNetwork(RequestContext requestContext, CloudRegion cloudRegion,
            ServiceInstance serviceInstance, L3Network l3Network)
            throws UnsupportedEncodingException, NetworkAdapterClientException {

        DeleteNetworkRequest deleteNetworkRequest = networkAdapterObjectMapper
                .deleteNetworkRequestMapper(requestContext, cloudRegion, serviceInstance, l3Network);
        return Optional.of(networkAdapterClient.deleteNetwork(l3Network.getNetworkId(), deleteNetworkRequest));
    }

}