Source:
<code>public NetworkInstance loadNetwork(ClaudiaData claudiaData, NetworkInstance network, String region) throws EntityNotFoundException { if (network.getIdNetwork() == null ) { String netId = getNetworkId (claudiaData, network, region); if (netId == null) { <START> String msm = "Error to obtain the network infromation " + network.getNetworkName(); <END> log.error(msm); throw new EntityNotFoundException(Network.class, msm, new Exception()); } network.setIdNetwork(netId); } log.debug("Load network " + network.getIdNetwork() + " in region " + region + " vdc " + claudiaData.getVdc()); String response = ""; try { String token = claudiaData.getUser().getToken(); String vdc = claudiaData.getVdc(); response = openStackUtil.getNetworkDetails(network.getIdNetwork(), region, token, vdc); JSONObject jsonNet = new JSONObject(response); JSONObject aux =(JSONObject)jsonNet.get("network"); NetworkInstance netInst = NetworkInstance.fromJson(aux, region); JSONArray jsonSubNetworks = aux.getJSONArray("subnets"); for (int i = 0; i < jsonSubNetworks.length(); i++) { SubNetworkInstance subNet = loadSubNetwork(claudiaData, jsonSubNetworks.getString (i), region); subNet.setIdNetwork(network.getIdNetwork()); netInst.addSubNet(subNet); } return netInst; } catch (OpenStackException e) { String msm = "Error to obtain the network information " + network.getNetworkName() + ":" + e.getMessage(); log.error(msm); throw new EntityNotFoundException(Network.class, msm, e); } catch (JSONException e) { String msm = "Error to obtain the network instance from json " + network.getNetworkName() + ":" + e.getMessage(); log.error(msm); } return network; }</code><technical_language>information</technical_language>

Target:
public NetworkInstance loadNetwork(ClaudiaData claudiaData, NetworkInstance network, String region) throws EntityNotFoundException { String message="Error loading the network: "; if (network.getIdNetwork() == null ) { String netId = getNetworkId (claudiaData, network, region); if (netId == null) { String msm = message + network.getNetworkName(); log.error(msm); throw new EntityNotFoundException(Network.class, msm, new Exception()); } network.setIdNetwork(netId); } log.debug("Load network " + network.getIdNetwork() + " in region " + region + " vdc " + claudiaData.getVdc()); String response = ""; try { String token = claudiaData.getUser().getToken(); String vdc = claudiaData.getVdc(); response = openStackUtil.getNetworkDetails(network.getIdNetwork(), region, token, vdc); JSONObject jsonNet = new JSONObject(response); JSONObject aux =(JSONObject)jsonNet.get("network"); NetworkInstance netInst = NetworkInstance.fromJson(aux, region); JSONArray jsonSubNetworks = aux.getJSONArray("subnets"); for (int i = 0; i < jsonSubNetworks.length(); i++) { SubNetworkInstance subNet = loadSubNetwork(claudiaData, jsonSubNetworks.getString (i), region); subNet.setIdNetwork(network.getIdNetwork()); netInst.addSubNet(subNet); } return netInst; } catch (OpenStackException e) { String msm = message + network.getNetworkName() + ":" + e.getMessage(); log.error(msm); throw new EntityNotFoundException(Network.class, msm, e); } catch (JSONException e) { String msm = message + network.getNetworkName() + ":" + e.getMessage(); log.error(msm); } return network; }