Source:
public List<SCIMProviderDTO> getAllProviders(String consumerId) throws IdentitySCIMException { Connection connection = null; PreparedStatement prepStmt = null; ResultSet rSet = null; List<SCIMProviderDTO> scimProviders; try { connection = JDBCPersistenceManager.getInstance().getDBConnection(); prepStmt = connection.prepareStatement(SQLQueries.GET_ALL_PROVIDERS_SQL); prepStmt.setString(1, consumerId); rSet = prepStmt.executeQuery(); scimProviders = new ArrayList<>(); while (rSet.next()) { if (rSet.getString(1) != null && rSet.getString(1).length() > 0) { SCIMProviderDTO providerDTO = new SCIMProviderDTO(); providerDTO.setProviderId(rSet.getString(1)); providerDTO.setUserName(rSet.getString(2)); String encryptedPassword = rSet.getString(3); byte[] bytes = CryptoUtil.getDefaultCryptoUtil().base64DecodeAndDecrypt(encryptedPassword); providerDTO.setPassword(new String(bytes)); providerDTO.setUserEPURL(rSet.getString(4)); providerDTO.setGroupEPURL(rSet.getString(5)); providerDTO.setBulkEPURL(rSet.getString(6)); scimProviders.add(providerDTO); } } } catch (IdentityException e) { String errorMsg = "Error when getting an Identity Persistence Store instance."; log.error(errorMsg, e); throw new IdentitySCIMException(errorMsg, e); } catch (SQLException e) { log.error("Error when executing the SQL : " + SQLQueries.GET_ALL_PROVIDERS_SQL, e); throw new IdentitySCIMException("Error when reading the SCIM Providers information from " + "the persistence store.", e); } catch (CryptoException e) { String errorMsg = "Error in decrypting the password."; log.error(errorMsg, e); throw new IdentitySCIMException(errorMsg, e); } finally { IdentityDatabaseUtil.closeAllConnections(connection, rSet, prepStmt); } return scimProviders; }

Target:
public List<SCIMProviderDTO> getAllProviders(String consumerId) throws IdentitySCIMException { Connection connection = null; PreparedStatement prepStmt = null; ResultSet rSet = null; List<SCIMProviderDTO> scimProviders; try { connection = JDBCPersistenceManager.getInstance().getDBConnection(); prepStmt = connection.prepareStatement(SQLQueries.GET_ALL_PROVIDERS_SQL); prepStmt.setString(1, consumerId); rSet = prepStmt.executeQuery(); scimProviders = new ArrayList<>(); while (rSet.next()) { if (rSet.getString(1) != null && rSet.getString(1).length() > 0) { SCIMProviderDTO providerDTO = new SCIMProviderDTO(); providerDTO.setProviderId(rSet.getString(1)); providerDTO.setUserName(rSet.getString(2)); String encryptedPassword = rSet.getString(3); byte[] bytes = CryptoUtil.getDefaultCryptoUtil().base64DecodeAndDecrypt(encryptedPassword); providerDTO.setPassword(new String(bytes)); providerDTO.setUserEPURL(rSet.getString(4)); providerDTO.setGroupEPURL(rSet.getString(5)); providerDTO.setBulkEPURL(rSet.getString(6)); scimProviders.add(providerDTO); } } } catch (IdentityException e) { String errorMsg = "Error when getting an Identity Persistence Store instance."; log.error(errorMsg, e); throw new IdentitySCIMException(errorMsg, e); } catch (SQLException e) { log.error("Error when executing the SQL : " + SQLQueries.GET_ALL_PROVIDERS_SQL); throw new IdentitySCIMException("Error when reading the SCIM Providers information from " + "the persistence store.", e); } catch (CryptoException e) { String errorMsg = "Error in decrypting the password."; log.error(errorMsg, e); throw new IdentitySCIMException(errorMsg, e); } finally { IdentityDatabaseUtil.closeAllConnections(connection, rSet, prepStmt); } return scimProviders; }