if( null != user && null != password ) {
context = getContext(user,password.toCharArray());
}
// Figure out version
CouchServerVersionImpl serverVersion = null;
if( null != version ) {
String[] parts = version.split("\\.");
if( parts.length < 2 ) {
throw new Exception("Can not parse server version: "+version);
}
serverVersion = new CouchServerVersionImpl(version, Integer.parseInt(parts[0]), Integer.parseInt(parts[1]));
}
// Compute URL
URL url = new URL(urlString);