move bean configuration to example