Rather than do this we have a reflection index available at deployment time, which should be used instead. Look for usages of ClassReflectionIndex