// retrieve method is encapsulated and hidden fromt the public
        private AppData retrieve(int key)
        {
            SPQuery query = new SPQuery();

            query.Query          = "<Where><Eq><FieldRef Name=\"ID\"/><Value Type=\"Integer\">" + key + "</Value></Eq></Where>";
            query.ViewAttributes = "Scope=\"Recursive\"";
            SPListItemCollection items = itemToFind.ParentList.GetItems(query);

            if (items.Count > 0)
            {
                //foreach (SPListItem item in items)
                //{
                //    SPItem result = item.Web.GetItem(item.Url);
                //    return result;
                //}
            }
            return(new AppData());
        }
 internal SPListItemCollection GetItems(SPQuery query)
 {
     throw new NotImplementedException();
 }