jdk 1.6 does not support this removed method