if (bspPeerConnection == null) {
throw new IllegalArgumentException("Can not find " + addr.toString()
+ " to transfer messages to!");
} else {
if (compressor != null) {
BSPCompressedBundle compMsgBundle = compressor.compressBundle(bundle);
if (CompressionUtil.getCompressionRatio(compMsgBundle, bundle) < 1.0) {
bspPeerConnection.put(compMsgBundle);
} else {
bspPeerConnection.put(bundle);
}