Maybe instead of an inner beans:ref, we should simply have an attribute "converter" which is a reference to externally defined <bean/>; the inner beans:bean is ok.

However, we generally put protective code in the parser (can't have an inner bean and a converter). Same thing for the query and query-ref etc (error in the parser if both are defined).