Stack errors = new Stack ();
TransactionalResource res = null;
Enumeration enumm = Configuration.getResources ();
while ( enumm.hasMoreElements () ) {
RecoverableResource rres = (RecoverableResource) enumm
.nextElement ();
if ( rres instanceof XATransactionalResource ) {
XATransactionalResource xatxres = (XATransactionalResource) rres;
if ( xatxres.usesXAResource ( xares ) )
res = xatxres;