for (int j = 0; j < theSessions.length; j++)
{
MauiApplication theApplication = theSessions [j].getCachedMauiApplication (theApplicationClass);
if (theApplication != null)
{
theApplication.exit ();
theSessions [j].removeApplication (theApplication);
theApplication.setChainApplicationName (theFolderName + theApplication.getName ());
}
}
}