private void upgradeReportletConf() {
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
List<Map<String, Object>> rcInstances =
jdbcTemplate.queryForList("SELECT id, serializedInstance FROM ReportletConfInstance");
for (Map<String, Object> row : rcInstances) {
String updated = ((String) row.get("serializedInstance")).
replaceAll("org\\.apache\\.syncope\\.client\\.report\\.",
"org.apache.syncope.common.report.");
jdbcTemplate.update("UPDATE ReportletConfInstance SET serializedInstance=? WHERE id=?",