[BZ-1042867] fix ProjectClassLoader when running in osgi