} catch (Exception e) {
datasource = null;
Logger.error(e, "Cannot connected to the database"+getConfigInfoString()+" : %s", e.getMessage());
if (e.getCause() instanceof InterruptedException) {
throw new DatabaseException("Cannot connected to the database"+getConfigInfoString()+". Check the configuration.", e);
}
throw new DatabaseException("Cannot connected to the database"+getConfigInfoString()+", " + e.getMessage(), e);
}
}
return dbConfigured;
}