try
{
final Context context = contextInstance.get();
if (context == null)
{
throw new ContextNotAvailableException("No Naming Context available.");
}
return (UserTransaction) context.lookup(configuration.get().getUserTransactionJndi());
}
catch (NamingException e)
{