revert change as API not available under Java 6