/// <exception cref="System.IO.IOException"/>
        private Path GetTaskAttemptPath(TaskAttemptContext context, Path @out)
        {
            Path workPath = FileOutputFormat.GetWorkOutputPath(context.GetJobConf());

            if (workPath == null && @out != null)
            {
                return(FileOutputCommitter.GetTaskAttemptPath(context, @out));
            }
            return(workPath);
        }