java constructor to assign the entire class not just fields
<p>my system is both jibx and a legacy xml app and i want to build a constructor that can take a string of xml and unmarshal it into its own class.  like this:</p>

<pre><code>public ActiveBankTO(String xmlIn)
    {
        try
        {
            ByteArrayInputStream bin = new ByteArrayInputStream(xmlIn.getBytes());
            IBindingFactory bfact;
            bfact = BindingDirectory.getFactory(ActiveBankTO.class);
            IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
            this = (ActiveBankTO) uctx.unmarshalDocument(bin, null);
        } catch (JiBXException e)
        {
            e.printStackTrace();
        }
    }
</code></pre>

<p>but obviously i cant assign "this" as a variable.  is there a way to make this work?  i realize i can put this into a static method that can be used, or a few other tricks to make it work, but this is something that has come up on several projects in various forms and i was wondering if this particular method is possible.</p>
