the task implemented for ates in 2016, moved to gradle, moved to spring boot 2.1.2, added comments, missing exception handling