Temporary fix for OSGI

See issue 460 in morphia