All of the repetition of ``SparkLoadWork.CommandTypes.`` gets tedious.  I'd ``import CommandTypes._`` here and ``import SparkLoadWork.CommandTypes._`` right after ``class SparkLoadTask ... {``, then just use ``OVERWRITE`` and ``INSERT`` throughout this file -- e.g., I'd go with ``val commandType = if (isOverwrite) OVERWRITE else INSERT``.