private void addAttemptToJob(Job job, QueryState state, QueryProfile profile) throws IOException { jobAttempt.setState(JobsServiceUtil.queryStatusToJobStatus(state)); final JobInfo jobInfo = jobAttempt.getInfo(); final QueryProfileParser profileParser = new QueryProfileParser(job.getJobId(), profile);