This is part of the capability being added to Coins release 2
(Early access now, general release end of this month).
Coins will wrap user objects, with support for things like
EventListener registration between user objects specified in
the CSchema as a kind of refId attribute.
What I'm trying to do with it is demonstrate the use of XML to
compose an awt program from a mix of standard awt
components and user application code.
Bill