if (regex != null && ps.isAvailable()) {
String response = ssh.getServerBanner();
if (response == null) {
ps = PollStatus.unavailable("server closed connection before banner was recieved.");
}
<BUG>if (!regex.match(response)) {
</BUG>
LOG.debug("isServer: NON-matching response='{}'", response);
ps = PollStatus.unavailable("server responded, but banner did not match '" + banner + "'");
} else {

if (regex != null && ps.isAvailable()) {
String response = ssh.getServerBanner();
if (response == null) {
ps = PollStatus.unavailable("server closed connection before banner was recieved.");
}
if (!regex.matcher(response).find()) {
LOG.debug("isServer: NON-matching response='{}'", response);
ps = PollStatus.unavailable("server responded, but banner did not match '" + banner + "'");
} else {
