try {
List<Argument> arguments = commandLine.getArguments();
String connectionString = arguments.size() > 0 ? arguments.get(0).getValue() : "";
Connection connection = ConnectionFactory.getConnection(connectionString);
String password = null;
if (connection.needsCredentials()) {
password = new String(context.getOutputAdapter().secureReadln("Password: "));
}
connection.connect(context, password);
context.setConnection(connection);
} catch (Exception e) {