Update bean creation

Automatically bind a bean to a domain