Object (Value value) { if (myInputIdMapping == null) return null; value = wrapValue(value); if (myInputIdMapping == value || // myNullValue is Object myInputIdMapping.equals(value)) { return myInputIdMappingValue; } Map<Value, Object> mapping = asMapping(); return mapping == null ? null : mapping.get(value); }