if (uInfo.getInUse() || uInfo.getInMigration()) {
logger.finest("port not available");
return null;
}
else if (uInfo.getConnectionID() == null)
throw new PortNotConnectedException("Port " + portName + " not connected");
else {
uInfo.setInUse(true);
// return the reference to the provides port
return uInfo.getProvidesPortReference();
}