JobContext and TaskAttemptContext instatiation independent of Hadoop version.