stay with java 1.6 API