rewrite apache MINA scala ftp server