Set/change sheet name in Excel (Apache POI)

I’ve been working on a project involving a lot of Excel files processing using Apache POI library. I was coding a method to generate an Excel report with various sheets, and to stylish a little bit i wanted to set sheet names, but looking for a method like sheet.setName(), i couldn’t find anything. Looking in the documentation i couldn’t find anything, but navigating a little bit i found this post on stackoverflow:

http://stackoverflow.com/questions/21942056/is-it-possible-to-change-sheet-name-with-apache-poi-ms-excel-java-android

Basically, you use the Workbook object instead Sheet object, based on sheet index beginning from zero: