Can you use getBeanNamesForType ?