XWikiAdapter logging added. Still trying to trace the null pointer exception.