@Override
public MessageQueueWriter getWriter(SshConfig sshConfig, String queue) throws IOException {
if (queue.startsWith("sftp://")) {
File path = new File(queue.substring(7));
return new SftpMessageQueueWriter(sshConfig, new RemoteFile(path));
} else {
throw new IllegalArgumentException();
}
}