- String id = configuration.getStringValue("Sone/Name." + soneName + "/ID").getValue(null);
- String insertUri = configuration.getStringValue("Sone/Name." + soneName + "/InsertURI").getValue(null);
- String requestUri = configuration.getStringValue("Sone/Name." + soneName + "/RequestURI").getValue(null);
- long modificationCounter = configuration.getLongValue("Sone/Name." + soneName + "/ModificationCounter").getValue((long) 0);
- String firstName = configuration.getStringValue("Sone/Name." + soneName + "/Profile/FirstName").getValue(null);
- String middleName = configuration.getStringValue("Sone/Name." + soneName + "/Profile/MiddleName").getValue(null);
- String lastName = configuration.getStringValue("Sone/Name." + soneName + "/Profile/LastName").getValue(null);
+ String sonePrefix = "Sone/Name." + soneName;
+ String id = configuration.getStringValue(sonePrefix + "/ID").getValue(null);
+ String insertUri = configuration.getStringValue(sonePrefix + "/InsertURI").getValue(null);
+ String requestUri = configuration.getStringValue(sonePrefix + "/RequestURI").getValue(null);
+ long modificationCounter = configuration.getLongValue(sonePrefix + "/ModificationCounter").getValue((long) 0);
+ String firstName = configuration.getStringValue(sonePrefix + "/Profile/FirstName").getValue(null);
+ String middleName = configuration.getStringValue(sonePrefix + "/Profile/MiddleName").getValue(null);
+ String lastName = configuration.getStringValue(sonePrefix + "/Profile/LastName").getValue(null);