public IEntry ToEntry(IRestRepresentation representation) { var reptype = representation.GetType(); if (!BindingMap.ContainsKey(reptype)) { throw new KeyNotFoundException("No binding from a representation to an entry was found for type " + reptype.GetFriendlyTypeName()); } var entryType = BindingMap[reptype]; return(ReflectionUtility.Construct(entryType, new object[] { this, representation }) as IEntry); }