Added simple beans factory method that uses macros + Dynamic.applyDynamicNamed