/// <param name="capsKey">The message key</param>
/// <param name="message">the IMessage object containing the deserialized data sent from the simulator</param>
/// <param name="simulator">The <see cref="Simulator"/> which originated the packet</param>
protected void AvatarGroupsReplyMessageHandler(String capsKey, IMessage message, Simulator simulator)
{
AgentGroupDataUpdateMessage msg = (AgentGroupDataUpdateMessage)message;
List<AvatarGroup> avatarGroups = new ArrayList<AvatarGroup>(msg.GroupDataBlock.length);
for (int i = 0; i < msg.GroupDataBlock.length; i++)
{
AvatarGroup avatarGroup = new AvatarGroup();
avatarGroup.AcceptNotices = msg.GroupDataBlock[i].AcceptNotices;