Added example for JDK7