DATAJPA-638 - Improve bean definition registration for root configuration element.

We now make sure wo register shared bean definitions only once for all usages of a root configuration element (XML or annotation).

Related ticket: DATACMNS-609.