Source:
<code>protected String getPassword(String id) { acquireConnection(); Select select = new Select(table); select.setFrom(table.getQuotedName()); List<Column> whatColumns = new ArrayList<>(2); whatColumns.add(table.getColumn(passwordField)); if (isMultiTenant()) { whatColumns.add(table.getColumn(TENANT_ID_FIELD)); } <START> String what = whatColumns.stream().map(col -> col.getQuotedName()).collect(Collectors.joining(", ")); <END> select.setWhat(what); String whereClause = table.getPrimaryColumn().getQuotedName() + " = ?"; whereClause = addFilterWhereClause(whereClause); select.setWhere(whereClause); String sql = select.getStatement(); if (logger.isLogEnabled()) { List<Serializable> values = new ArrayList<>(); values.add(id); addFilterValuesForLog(values); logger.logSQL(sql, values); } try (PreparedStatement ps = sqlConnection.prepareStatement(sql)) { setFieldValue(ps, 1, table.getPrimaryColumn(), id); addFilterValues(ps, 2); try (ResultSet rs = ps.executeQuery()) { if (!rs.next()) { return null; } if (isMultiTenant()) { String tenantId = getCurrentTenantId(); if (!StringUtils.isBlank(tenantId)) { String entryTenantId = (String) getFieldValue(rs, table.getColumn(TENANT_ID_FIELD)); if (!StringUtils.isBlank(entryTenantId)) { if (!entryTenantId.equals(tenantId)) { return null; } } } } String password = (String) getFieldValue(rs, table.getColumn(passwordField)); if (logger.isLogEnabled()) { String value = HIDE_PASSWORD_IN_LOGS ? "********" : password; logger.logMap(Collections.singletonMap(passwordField, value)); } return password; } } catch (SQLException e) { throw new DirectoryException("getPassword failed", e); } }</code><technical_language>a method reference in map call: Column::getQuotedName</technical_language>

Target:
protected String getPassword(String id) { acquireConnection(); Select select = new Select(table); select.setFrom(table.getQuotedName()); List<Column> whatColumns = new ArrayList<>(2); whatColumns.add(table.getColumn(passwordField)); if (isMultiTenant()) { whatColumns.add(table.getColumn(TENANT_ID_FIELD)); } String what = whatColumns.stream().map(Column::getQuotedName).collect(Collectors.joining(", ")); select.setWhat(what); String whereClause = table.getPrimaryColumn().getQuotedName() + " = ?"; whereClause = addFilterWhereClause(whereClause); select.setWhere(whereClause); String sql = select.getStatement(); if (logger.isLogEnabled()) { List<Serializable> values = new ArrayList<>(); values.add(id); addFilterValuesForLog(values); logger.logSQL(sql, values); } try (PreparedStatement ps = sqlConnection.prepareStatement(sql)) { setFieldValue(ps, 1, table.getPrimaryColumn(), id); addFilterValues(ps, 2); try (ResultSet rs = ps.executeQuery()) { if (!rs.next()) { return null; } if (isMultiTenant()) { String tenantId = getCurrentTenantId(); if (!StringUtils.isBlank(tenantId)) { String entryTenantId = (String) getFieldValue(rs, table.getColumn(TENANT_ID_FIELD)); if (!StringUtils.isBlank(entryTenantId)) { if (!entryTenantId.equals(tenantId)) { return null; } } } } String password = (String) getFieldValue(rs, table.getColumn(passwordField)); if (logger.isLogEnabled()) { String value = HIDE_PASSWORD_IN_LOGS ? "********" : password; logger.logMap(Collections.singletonMap(passwordField, value)); } return password; } } catch (SQLException e) { throw new DirectoryException("getPassword failed", e); } }