For #276 clean up getCachedComponent() and rename it.
Fix #276 by flushing controller cache when bean factory is set