WINDUP-102: Refactor java legacy rules
WINDUP-102: Java-Gate test