Actually, this is one of the places where I was looking for your feedback. I agree it's hacky, I was desperate to get it to work.
Don't you think the most correct way would be to create another factory class? Creating a factory each time we need it to construct a single object seems wasteful even for a Spring web app...