JChannel c1=new JChannel(props);
try {
c1.connect(cluster_name);
Message merge_request=new Message();
GMS.GmsHeader hdr=new GMS.GmsHeader(GMS.GmsHeader.MERGE_REQ);
MergeId new_merge_id=MergeId.create(c1.getAddress());
hdr.setMergeId(new_merge_id);
merge_request.putHeader(GMS_ID, hdr);
GMS gms=(GMS)c1.getProtocolStack().findProtocol(GMS.class);
gms.setMergeTimeout(2000);
MergeId merge_id=gms.getMergeId();
assert merge_id == null;
System.out.println("starting merge");
gms.up(new Event(Event.MSG, merge_request));
merge_id=gms.getMergeId();
System.out.println("merge_id = " + merge_id);