// Okay - we have profile configurations.
for (ProfileConfiguration profileConfig : profileConfigs) {
// Okay - we have the first profile configuration in.
List<String> names = null;
DialectDTO dialectdto = null;
String dialect = null;
dialect = profileConfig.getDialectName();
if (basicConfigurations.containsKey(dialect)) {
dialectdto = basicConfigurations.get(dialect);
} else {
dialectdto = new DialectDTO();
dialectdto.setDialectUri(dialect);
dialectdto.setProfileConfigurations(new String[0]);
basicConfigurations.put(dialect, dialectdto);
}
names = new ArrayList<String>(Arrays.asList(dialectdto.getProfileConfigurations()));
names.add(profileConfig.getProfileName());
dialectdto.setProfileConfigurations(names.toArray(new String[names.size()]));
}
dialects = getAllClaimDailects();
for (int i = 0; i < dialects.length; i++) {
if (!basicConfigurations.containsKey(dialects[i])) {
DialectDTO dialectdto = null;
dialectdto = new DialectDTO();
dialectdto.setDialectUri(dialects[i]);
dialectdto.setProfileConfigurations(new String[0]);
if (UserCoreConstants.DEFAULT_CARBON_DIALECT.equals(dialects[i])) {
basicConfigurations.put(dialects[i], dialectdto);
}
}
}