[BZ-1033051] make Environment compatible with drools 5 API