{
Enumeration elements = _preOAShutdown.elements();
while (elements.hasMoreElements())
{
PreShutdown c = (PreShutdown) elements.nextElement();
if (c != null)
{
c.work();
c = null;
}
}
// _preOAShutdown.clear();
}
_oa.destroyRootPOA();
if (!_postOAShutdown.isEmpty())
{
Enumeration elements = _postOAShutdown.elements();
while (elements.hasMoreElements())
{
PostShutdown c = (PostShutdown) elements.nextElement();
if (c != null)
{
c.work();
c = null;
}
}
// _postOAShutdown.clear();