don't use JDK 7 methods yet