boolean found = false;
// TODO ***** problem here!!!
for (int i=0; i<hvns.length; i++)
{
HostVirtualNic nic = hvns[i];
String portGroup = nic.getPortgroup();
if (portGroup!=null && portGroup.equals(portGroupName))
{
found = true;
hns.removeVirtualNic(nic.getDevice());
System.out.println("Successful removing : " + portGroupName );
}
}
if (!found)
{