throws ResourceException {
ManagedConnection result = null;
if (info instanceof URIRequestInfo) {
URIRequestInfo requestInfo = (URIRequestInfo) info;
URI uri = requestInfo.getURI();
Iterator iterator = connections.iterator();
while (iterator.hasNext()) {
VMManagedConnection connection =
(VMManagedConnection) iterator.next();
if (connection.hasPrincipal(principal) &&
uri.equals(connection.getRemoteURI())) {
result = connection;
break;
}
}
}