This line confused me at first because it appeared that you were unconditionally overwriting the object you just defined.  How about passing the default object directly to getDistributionFileContent?  This is just a nit, though.