networkOperations.setConfiguration(parameters);
}
}
protected static void deleteNetwork(String networkName) {
NetworkGetConfigurationResponse operationResponse = null ;
boolean exist = false;
try {
operationResponse = networkManagementClient.getNetworksOperations().getConfiguration();
} catch (IOException e) {
} catch (ServiceException e) {
}
//Assert
if (operationResponse != null)
{
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(true);
DocumentBuilder documentBuilder = null;
try {
documentBuilder = documentBuilderFactory.newDocumentBuilder();
} catch (ParserConfigurationException e) {
e.printStackTrace();
}
Document responseDoc = null;
try {
responseDoc = documentBuilder.parse(new BOMInputStream(new ByteArrayInputStream(operationResponse.getConfiguration().getBytes())));
} catch (NullPointerException e) {
} catch (SAXException e) {
} catch (IOException e) {
}