fixing ide reported errors, removing unused methods
updates to ClusteringAgent#sendMessage exception handling
renaming getPrimaryClusterMember method to getClusterMember in cluster context