List hosts=(List)service_state.get(service_id);
if(hosts == null || hosts.size() == 0)
return null;
return (Address)hosts.get(0);
}
<BUG>private void sendServiceMessage(byte type, String service, Address host) throws Exception {
</BUG>
if(host == null)
host=getLocalAddress();
if(host == null) {

List hosts=(List)service_state.get(service_id);
if(hosts == null || hosts.size() == 0)
return null;
return (Address)hosts.get(0);
}
private void sendServiceMessage(byte type, String service, Address host,boolean bypassFlush) throws Exception {
if(host == null)
host=getLocalAddress();
if(host == null) {
