Make JDK6 compatible.
Null check of context for transactions.