public virtual OSD GetState(UUID obj, bool copy) { OSD o = null; lock (m_statesLock) { if (m_states.TryGetValue(obj, out o)) { if (o == m_defaultValue) { return(null); } if (copy) { return(o.Copy()); } return(o); } } return(new OSD()); }