String baseName = "/databus2.testGroupLeaderSimple";
LOG.info("Before joining group: groupName=" + _groupName + "; memberName=" + _memberName +
"; leadershipInfo=" + _groupLeadershipConn.getGroupLeadershipInfo(baseName,_groupName));
GroupLeadershipSession groupLeadershipSession = _groupLeadershipConn.joinGroup(baseName,
_groupName, _memberName, new AcceptLeadershipCallback()
{
@Override
public void doAcceptLeadership(GroupLeadershipSession groupLeadershipSession)
{
LOG.info("Accepting leadership: " + groupLeadershipSession);