I propose an exception should be thrown in the case that neither the
delegate nor server could be found. If this is not done, the failure later
is not ideal.
if( serverAndDelegate.getDelegate() == null &&
serverAndDelegate.getServer()== null){
throw new IOException ("Failed to find server and delegate for " +
identityUrl);
}