private String getDestinationHostName(String hostName) {
        List<ServerRedirect> servers = serverRedirectService
            .tableServers(requestInformation.get().client.getId());
        for (ServerRedirect server : servers) {
            if (server.getSrcUrl().compareTo(hostName) == 0) {
                if (server.getDestUrl() != null && server.getDestUrl().compareTo("") != 0) {
                    return server.getDestUrl();
                } else {
                    logger.warn("Using source URL as destination URL since no destination was specified for: {}",
                                server.getSrcUrl());
                }

                // only want to apply the first host name change found
                break;
            }
        }

        return hostName;
    }
private String getDestinationHostName ( String hostName ) { List < ServerRedirect > servers = serverRedirectService . tableServers ( requestInformation . get ( ) . client . getId ( ) ) ; for ( ServerRedirect server : servers ) { if ( server . getSrcUrl ( ) . compareTo ( hostName ) == 0 ) { if ( server . getDestUrl ( ) != null && server . getDestUrl ( ) . compareTo ( "" ) != 0 ) { return server . getDestUrl ( ) ; } else { logger . warn ( "Using source URL as destination URL since no destination was specified for: {}" , server . getSrcUrl ( ) ) ; } break ; } } return hostName ; }
Obtain the destination hostname for a source host

@param hostName
@return