restartCount++;
try {
startPort += restartCount;
} catch (NumberFormatException e) {
e.printStackTrace();
throw new CasProcessorDeploymentException(e);
}
}
if (vns == null) {
try {
vns = new LocalVNS(startPort, maxPort, vnsPort);
vns.setConnectionPool(portQueue);
localVNSThread = new Thread(vns);
localVNSThread.start();
} catch (Exception e) {
throw new CasProcessorDeploymentException(e);
}
}
}