@Override protected void setDFS(FileSystem DFS) { if (DFS instanceof LocalFileSystem) throw new IllegalArgumentException( "This class must talk to a remote file system"); // ToDo change super.setDFS(DFS); }