try
{
Integer status = (Integer) ping.invoke(c, params);
// Error
if (status.intValue() < 0)
return new SQLException("pingDatabase failed status=" + status);
}
catch (Exception e)
{
// What do we do here? Assume it is a misconfiguration
log.warn("Unexpected error in pingDatabase", e);
}
// OK
return null;