@Bean
	@ConditionalOnMissingBean(name = "codec")
	public Codec codec() {
		Map<String, KryoRegistrar> kryoRegistrarMap = applicationContext.getBeansOfType(KryoRegistrar
				.class);
		return new PojoCodec(new ArrayList<>(kryoRegistrarMap.values()), useReferences);
	}
Configuration class for Codec and possibly other MessageBus extensions

@author David Turanski
@since 1.2
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/MessageBusExtensionsConfiguration.java