Added promise to buildDashDocSet method.