public string getSecurityKeyForContext(string context)
{
if (StringUtils.isEmpty(context))
{
throw new ArgumentNullException("Missing context");
}
string contextIen = getOptionIen(context);
VistaQuery vq = new VistaQuery("XWB GET VARIABLE VALUE");
string arg = "$G(^DIC(19," + contextIen + ",0))";
vq.addParameter(vq.REFERENCE, arg);
string response = (string)cxn.query(vq);
return extractSecurityKey(response);
}