309310311312313314315316317318319
throw new PortNotDefinedException("Provides port : " + portName + " has been removed"); if (pInfo.getInUse()) { pInfo.setInUse(false); logger.finest("wake up sleeper waiting for port to be released"); pInfo.notify(); return; } else throw new PortNotInUseException("Port " + portName + " not in use"); }