request.getResourceRef().getHostIdentifier());
// Ask the private internal route to handle the call
component.getInternalRouter().handle(request, response);
} else if (cr.getRiapAuthorityType() == LocalReference.RIAP_HOST) {
VirtualHost host = null;
VirtualHost currentHost = null;
final Integer hostHashCode = VirtualHost.getCurrent();
// Lookup the virtual host
for (final Iterator<VirtualHost> hostIter = getComponent()
.getHosts().iterator(); (host == null)
&& hostIter.hasNext();) {
currentHost = hostIter.next();
if (currentHost.hashCode() == hostHashCode) {
host = currentHost;
}
}
if ((host == null) && (component.getDefaultHost() != null)) {