*
* @param repo the component repository, only used to register secondary items like lifecycle, not null
* @return the exchange source, not null
*/
protected ExchangeSource createExchangeSource(ComponentRepository repo) {
ExchangeSource source = new MasterExchangeSource(getExchangeMaster());
if (getCacheManager() != null) {
source = new EHCachingExchangeSource(source, getCacheManager());
}
return source;
}