private OSDMap GetGroup(OSDMap map)
{
OSDMap resp = new OSDMap();
IGroupsServiceConnector groups = DataPlugins.RequestPlugin<IGroupsServiceConnector>();
resp["Group"] = false;
if (groups != null && (map.ContainsKey("Name") || map.ContainsKey("UUID")))
{
UUID groupID = map.ContainsKey("UUID") ? UUID.Parse(map["UUID"].ToString()) : UUID.Zero;
string name = map.ContainsKey("Name") ? map["Name"].ToString() : "";
GroupRecord reply = groups.GetGroupRecord(AdminAgentID, groupID, name);
if (reply != null)
{
resp["Group"] = GroupRecord2OSDMap(reply);
}
}
return resp;
}