private void addOrUpdateOIDCSpProperty(String preprocessedClientId, int spTenantId, Map<String, List<String>> spOIDCProperties, String propertyKey, String propertyValue, PreparedStatement preparedStatementForPropertyAdd, PreparedStatement preparedStatementForPropertyUpdate) throws SQLException { if (propertyAlreadyExists(spOIDCProperties, propertyKey)) { addToBatchForOIDCPropertyUpdate(preprocessedClientId, spTenantId, preparedStatementForPropertyUpdate, propertyKey, propertyValue); } else { addToBatchForOIDCPropertyAdd(preprocessedClientId, spTenantId, preparedStatementForPropertyAdd, propertyKey, propertyValue); } }