This isn't something I'll delay merging this over, but if you make channelName and stackName final in the method signature, you wouldn't need to do this. They'd be visible to the inner class OSH.