private static final Logger LOG = LoggerFactory.getLogger(WorkflowJsonService.class);
PostgresConnector getConnector() throws IOException {
//TODO fix temp hack
if (StringUtils.contains(DEFAULT_DRIVER, "oracle")) {
return new OracleConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
}else if (StringUtils.contains(DEFAULT_DRIVER, "mysql")) {
return new MySQLConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
} else {
return new PostgresConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
}