Added to documentation of Java example