tempDatasource.setDatabaseShapeColumn(myTextFieldDatabaseColumn.getText());
tempDatasource.setDatabaseSpatialReferenceID(myTextFieldSpatialReferenceID.getText());
tempDatasource.setDatabaseQuery(myTextFieldDatabaseQuery.getText());
// connect to the datasource.
tempDatasource.connect();
tempDatasource.setName(myTextFieldDatabaseName.getText());
// save the configuration information.
System.getProperties().setProperty(Constants.getApplicationName()+"."+SERVERNAME_TAG, tempDatasource.getDatabaseServername());
System.getProperties().setProperty(Constants.getApplicationName()+"."+DATABASENAME_TAG, tempDatasource.getDatabaseName());