*/
private AuthenticationScheme buildAuthenticationSchemeSequence(ResultSet resultSet) throws Exception {
Calendar created = JDBCUtil.getCalendar(resultSet, "date_created");
Calendar amended = JDBCUtil.getCalendar(resultSet, "date_amended");
boolean enabled = resultSet.getInt("enabled") == 1;
AuthenticationScheme seq = new DefaultAuthenticationScheme(resultSet.getInt("realm_id"), resultSet.getInt("resource_id"),
resultSet.getString("resource_name"), resultSet.getString("resource_description"), created, amended,
enabled, resultSet.getInt("priority"));
return isSchemeAvailable(seq) ? seq : null;
}