Added rules for Java.