private void validateRemote(ParameterMap map, String nodehost) throws CommandValidationException { // guaranteed to either get a valid type -- or a CommandValidationException RemoteType type = parseType(map); if (type == RemoteType.SSH) validateSsh(map, nodehost); // bn: shouldn't this be something more sophisticated than just the standard string?!? // i.e. check to see if the hostname is this machine? // todo if (nodehost.equals("localhost")) { return; } // BN says: Shouldn't this be a fatal error?!? TODO if (sshL == null) return; validateRemoteConnection(map); }