Attribute a=values.stream().filter(value -> value.getOrder("order") == order).findAny() .orElseThrow(() -> new RuntimeException("Could not find value of order " + order)); Id id=a.getId(); if(id==null) throw new RuntimeException("Value of order " + order + " has no id"); String name=id.getName(); if(name==null) throw new RuntimeException( "Could get the id but not the localized id of the value of order " + order); return name;
this.fields.put(id.getName(), id);
this.fields.put(id.getName(), id);
if (attributes != null) { for (Id id : attributes.getId()) { String name = id.getName(); ids.put(name, id); fields.put(name, id);
if (attributes != null) { for (final Id id : attributes.getId()) { final String name = id.getName(); ids.put(name, id); fields.put(name, id);
if (attributes != null) { for (final Id id : attributes.getId()) { final String name = id.getName(); ids.put(name, id); fields.put(name, id);
if (attributes != null) { for (Id id : attributes.getId()) { String name = id.getName(); fields.put(name, id);