startTime = System.currentTimeMillis();
try
{
Thread.currentThread().sleep(startAfterSeconds * 1000);
while (!timeOutReached() && !callBack.check())
{
try
{
Thread.currentThread().sleep(1000);
computeTimeOut();
}
catch (InterruptedException ie)
{
//sLogger.warning(ie.toString());
timeOutReached = true;
}
}
}
catch (Exception e)
{
//sLogger.warning(e.toString());
timeOutReached = true;
}