Make work with Java6.