class Files {

    public static Path setLastModifiedTime(final Path path,
                                           final FileTime time)
            throws IOException, SecurityException {
        checkNotNull("path",
                     path);

        getFileAttributeView(path,
                             BasicFileAttributeView.class).setTimes(time,
                                                                    null,
                                                                    null);

        return path;
    }

    private  Files();

}