Changed class generation and creation logic, giving ability to extend AR
classes in local controllers and models