private ObjectContext[] GetSessions(TbsContext caller, SessionIn[] inSessions)
{
var contexts = new ObjectContext[inSessions.Length];
for (int j = 0; j < inSessions.Length; j++)
{
contexts[j] = ContextManager.GetContext(caller, inSessions[j].handle);
if (contexts[j] == null)
{
return null;
}
}
return contexts;
}