if (wsInfo != null) {
synchronized(wsInfo) {
while (wsInfo.getInUse()) {
try {
logger.finest("wait till the port is available");
wsInfo.wait();
} catch (InterruptedException ie) {
logger.severe("Exception while waiting for port to be released", ie);
}
}
if (wsInfo.isUnregistered())