if ( DHTLog.isOn()){
DHTLog.log( "remove for " + DHTLog.getString( encoded_key ));
}
DHTDBValue res = database.remove( local_contact, new HashWrapper( encoded_key ));
if ( res == null ){
// not found locally, nothing to do
return( null );
}else{
List contacts_l = new ArrayList( contacts.length );
for (int i=0;i<contacts.length;i++ ){
contacts_l.add( contacts[i] );
}
put( external_put_pool,
true,
new byte[][]{ encoded_key },
"Store of [" + description + "]",
new DHTTransportValue[][]{{ res }},
(byte)res.getFlags(),
contacts_l,
0,
new DHTOperationListenerDemuxer( listener ),
true,
new HashSet(),
1,
true );
return( res.getValue());
}
}