No functional change, review the code to down less it :
* Use groovy syntax
* Use DSL when is not use as it should
* Set EntityQuery List or First on multiple line
* use label and success(Map) DSL method
* Remove redundant or unnecessary variable instanciation
* Add missing variable type, for most ide analyser potential