Configuring custom conditional bean instantiations