class NetworkAdapterResources {

    public Optional<UpdateNetworkResponse> updateNetwork(RequestContext requestContext, CloudRegion cloudRegion,
            OrchestrationContext orchestrationContext, ServiceInstance serviceInstance, L3Network l3Network,
            Map<String, String> userInput, Customer customer)
            throws UnsupportedEncodingException, NetworkAdapterClientException {
        UpdateNetworkRequest updateNetworkRequest = networkAdapterObjectMapper.createNetworkUpdateRequestMapper(
                requestContext, cloudRegion, orchestrationContext, serviceInstance, l3Network, userInput, customer);

        return Optional.of(networkAdapterClient.updateNetwork(l3Network.getNetworkId(), updateNetworkRequest));
    }

}