Use custom XML bean definition on samples