Consider making the IPersonAttributesConfiguration instance (whether legacy strategy or JPA) a proper bean in the app context -- with all the normal patterns for dependencies -- and make the code that needs one use the (hackish) ApplicationContextLocator.