// fail-fast if we can't even support this agent
if (!getAgentManager().isAgentVersionSupported(request.getAgentVersion()).isSupported()) {
log.warn("Agent [" + request.getName() + "][" + request.getAddress() + ':' + request.getPort() + "]["
+ request.getAgentVersion() + "] would like to register with this server but it is not supported");
throw new AgentNotSupportedException("Agent [" + request.getName() + "] is an unsupported agent: "
+ request.getAgentVersion());
}
// Make a very quick test to verify the agent's remote endpoint can be connected to.
// If not, no point in continuing - the server won't be able to talk to the agent anyway.