Java 1.7 compatible
Signed-off-by:Syed Asad Rahman <s9asad@gmail.com>