Changes for OVPMS-1544 Access application context in reports

git-svn-id: svn://svn.openvpms.org/openvpms/framework/trunk@6342 9e4fa352-aafb-0310-9071-df624684024b