*/
public static DELAY setDelayForCache(Cache<?, ?> cache, int in_delay_millis, int out_delay_millis) throws Exception {
JGroupsTransport jgt = (JGroupsTransport) TestingUtil.extractComponent(cache, Transport.class);
Channel ch = jgt.getChannel();
ProtocolStack ps = ch.getProtocolStack();
DELAY delay = (DELAY) ps.findProtocol(DELAY.class);
if (delay==null) {
delay = new DELAY();
ps.insertProtocol(delay, ProtocolStack.ABOVE, TP.class);
}
delay.setInDelay(in_delay_millis);