#5: Added support for looking up beans by type.