- configuration.getStringValue("Sone/Name." + sone.getName() + "/ID").setValue(sone.getId());
- configuration.getStringValue("Sone/Name." + sone.getName() + "/RequestURI").setValue(sone.getRequestUri().toString());
- configuration.getStringValue("Sone/Name." + sone.getName() + "/InsertURI").setValue(sone.getInsertUri().toString());
- configuration.getLongValue("Sone/Name." + sone.getName() + "/ModificationCounter").setValue(sone.getModificationCounter());
+ String sonePrefix = "Sone/Name." + sone.getName();
+ configuration.getStringValue(sonePrefix + "/ID").setValue(sone.getId());
+ configuration.getStringValue(sonePrefix + "/RequestURI").setValue(sone.getRequestUri().toString());
+ configuration.getStringValue(sonePrefix + "/InsertURI").setValue(sone.getInsertUri().toString());
+ configuration.getLongValue(sonePrefix + "/ModificationCounter").setValue(sone.getModificationCounter());
+ Profile profile = sone.getProfile();
+ configuration.getStringValue(sonePrefix + "/Profile/FirstName").setValue(profile.getFirstName());
+ configuration.getStringValue(sonePrefix + "/Profile/MiddleName").setValue(profile.getMiddleName());
+ configuration.getStringValue(sonePrefix + "/Profile/LastName").setValue(profile.getLastName());