statusResource.setStatusUpdateTime(AiravataUtils.getTime(status.getTimeOfStateChange()));
statusResource.setState(status.getExecutionState().toString());
statusResource.save();
} catch (Exception e) {
logger.error("Error while updating task status...", e);
throw new RegistryException(e);
}
}