private void suspendLocally() throws SuspendException
{
if (isSuspended)
{
throw new SuspendException("Component already suspended.");
}
latcher = new CountDownLatch(1);
isSuspended = true;
while (workingThreads.get() != 0)
{
try
{
Thread.sleep(50);
}
catch (InterruptedException e)
{
throw new SuspendException(e);
}
}
}