As said before, you should inject the accessor into the constructor. You can then inline this method in the above method.