ExportWGAApplication wizard = (ExportWGAApplication) getWizard();
TaskStatus taskStatus = _taskStatusMap.get(DBNAME_TASK);
try {
DatabaseInformation dbInfo = new DatabaseInformation();
dbInfo.setImplementationClass(wizard.getRemoteDatabaseServer().getCreateableContentStoreImplemenations().get(0));
dbInfo.getOptions().put(ExportWGAApplication.CS_PATH_OPTION_NAME, wizard.getRemoteDatabaseName());
List<DatabaseInformation> dbInfos = wizard.getRemoteServer().getServices().getAvailableDatabases(wizard.getRemoteServer().getSession(), wizard.getRemoteDatabaseServer(), dbInfo.getImplementationClass());
if (dbInfos.contains(dbInfo)) {
taskStatus.setSeverity(TaskStatus.ERROR);
//taskStatus.setSeverityLabel("duplicate database name");
taskStatus.setMessage("A database with name '" + dbInfo.getOptions().get(ExportWGAApplication.CS_PATH_OPTION_NAME) + "' already exists on the database server.");
canFinish = false;
} else {
taskStatus.setSeverity(TaskStatus.OK);
taskStatus.setMessage("OK");
}