private boolean isMatch(final AbstractManagedConnectionImpl candidateConn,
final ConnectionRequestInfo crInfo, final Subject subject)
throws ResourceAdapterInternalException {
boolean result = false;
final ConnectionRequestInfo candidate = candidateConn.getConnectionRequestInfo();
if (candidate.equals(crInfo) && (subject == null || subject.equals(candidateConn.getSubject()))) {
try {
validateReference(candidateConn, subject);
result = true;
} catch (Exception thrown) {
result = false;