AUI-1599 Exception when running mail-portlet in osgi