add jdk1.7 method