this.connect(remoteSite.getURL().getHost(), remoteSite.getUsername(),
remoteSite.getPassword());
try {
homeDir = this.getCurrentWorkingDir();
} catch (Exception e) {
throw new ProtocolException(
"Failed to pwd after connect to store cwd : "
+ e.getMessage());
}
this.cwd = this.homeDir;
}