Reference bean to Main Class