[BZ-1007055] use kieproject classloader also to compile java classes