private static Naked GetValue(NakedObjectSpecification specification, object rawValue) { if (specification.isValue()) { NakedValue value = [email protected]().createValueInstance(specification); value.parseTextEntry(rawValue == null ? "" : rawValue.ToString()); return(value); } return(rawValue == null ? null : [email protected]().getAdapterForElseCreateAdapterForTransient(rawValue)); }