inf = null;
  public Object checkStatus(Object taskId) throws Exception {        TaskStatusInfo inf = (TaskStatusInfo)m_TaskStatus.get(taskId);    if (inf == null) {      throw new Exception("RemoteEngine ("+m_HostName+") : Task not found.");    }        TaskStatusInfo result = new TaskStatusInfo();    result.setExecutionStatus(inf.getExecutionStatus());    result.setStatusMessage(inf.getStatusMessage());    result.setTaskResult(inf.getTaskResult());    if (inf.getExecutionStatus() == TaskStatusInfo.FINISHED ||	inf.getExecutionStatus() == TaskStatusInfo.FAILED) {      System.err.println("Finished/failed Task id : " 			 + taskId + " checked by client. Removing.");      m_TaskStatus.remove(taskId);    }    return result;  }