improved getUtility method