bean resolver for non CDI class.