java.nio.Files can not be used. Only available in Java 7