public SleeTransaction asSleeTransaction(Transaction transaction)
			throws NullPointerException, IllegalArgumentException,
			SystemException {
		if (transaction == null) {
			throw new NullPointerException("null transaction");
		}
		if (transaction.getClass() == SleeTransactionImpl.class) {
			return (SleeTransaction) transaction;
		}
		if (transaction instanceof TransactionImple) {
			return new SleeTransactionImpl((TransactionImple) transaction,getTransactionContext(),this);
		}
		throw new IllegalArgumentException("unexpected transaction class type "+transaction.getClass());
	}
public SleeTransaction asSleeTransaction(Transaction transaction)
			throws NullPointerException, IllegalArgumentException,
			SystemException {
		if (transaction == null) {
			throw new NullPointerException("null transaction");
		}
		if (transaction.getClass() == SleeTransactionImpl.class) {
			return (SleeTransaction) transaction;
		}
		if (transaction instanceof TransactionImple) {
			return new SleeTransactionImpl((TransactionImple) transaction,getTransactionContext(),this);
		}
		throw new IllegalArgumentException("unexpected transaction class type "+transaction.getClass());
	}
public SleeTransaction asSleeTransaction ( Transaction transaction ) throws NullPointerException , IllegalArgumentException , SystemException { if ( transaction == null ) { throw new NullPointerException ( "null transaction" ) ; } if ( transaction . getClass ( ) == SleeTransactionImpl . class ) { return ( SleeTransaction ) transaction ; } if ( transaction instanceof TransactionImple ) { return new SleeTransactionImpl ( ( TransactionImple ) transaction , getTransactionContext ( ) , this ) ; } throw new IllegalArgumentException ( "unexpected transaction class type " + transaction . getClass ( ) ) ; }
/*
(non-Javadoc)
@see javax.slee.transaction.SleeTransactionManager#asSleeTransaction(javax.transaction.Transaction)
/ * ( non - Javadoc )