private void ReplaceHandlesIn(TpmHandle[] handles, SessionIn[] sessions, ObjectContext[] theObjects, ObjectContext[] theSessions)
{
for (int j = 0; j < handles.Length; j++)
{
handles[j] = theObjects[j].TheTpmHandle;
}
for (int j = 0; j < sessions.Length; j++)
{
sessions[j].handle = theSessions[j].TheTpmHandle;
}
}