bean configuration done with stereotypes