in src/main/java/com/epam/digital/data/platform/report/service/DataSourceService.java [68:83]
public DataSource buildDataSource(Role role) {
var map = new HashMap<String, String>();
map.put("host", dbHost);
map.put("dbname", dbName);
map.put("user", "analytics_" + role.getName());
map.put("password", role.getPassword());
var dataSource = new DataSource();
dataSource.setName(dbName + "_" + role.getName());
dataSource.setQueueName("queries");
dataSource.setType("pg");
dataSource.setSyntax("sql");
dataSource.setOptions(map);
return dataSource;
}