LPS-49294 Part 6: Use local variables in order to ensure that final variables are explicitly initialized and modified only once