try
{
startingTime = System.currentTimeMillis();
AsynchronousResponse taskResult =
_taskImpl.process(_inputParametersImpl);
endingTime = System.currentTimeMillis();
ThreadManagerResponse myResult =
new ThreadManagerResponseImpl(getId(),
OK,
null,
taskResult,
startingTime,
endingTime);
return myResult;
}
catch (Exception e)
{
try
{
endingTime = System.currentTimeMillis();
return new ThreadManagerResponseImpl(getId(),
UNKNOWN,
e.getMessage(),
e);
}
catch (Exception ee)
{
endingTime = System.currentTimeMillis();
return new ThreadManagerResponseImpl(getId(),
UNKNOWN,
e.getMessage(),
ee);
}
}