updated Bean with new DirectObjects API