+ "FROM AccessibleEndpoints "
+ "WHERE EndpointId = ? ORDER BY Time LIMIT 1 ";
PreparedStatement ps = connect.prepareStatement(sql);
ps.setInt(1, endpointId);
ResultSet result = ps.executeQuery();
AccessibilityStatus accessibleStatus = AccessibilityStatus.UNCHECKED;
if (result.next()) {
if (result.getBoolean("Accessible")) {
accessibleStatus = AccessibilityStatus.ACCESSIBLE;
} else {
accessibleStatus = AccessibilityStatus.INACCESSIBLE;