@Override public Value<?> getValue(final ValueService service) { FieldValue value; try { value = service.getField(key, RetrieveMode.READ_ONLY); } catch (final EntryNotFoundException e) { value = getInitialValue(service); } return value; }
private FieldValue getInitialValue(final ValueService service) { final FieldValue value = getFieldType().getNewField(service.stringWithBase(name(), false)); initializeFieldValue(value); return value; }