public List<ItemConflict> Compare(Item item)
        {
            //encrypt login and password
            string loginName = "";
            string pass = "";
            getloginAndPass(UserId, ref loginName, ref pass);
            string _url = getWSUrl(this.Url);

            RepositoryWebservice repo = new RepositoryWebservice(_url);
            repo.Credentials = new System.Net.NetworkCredential(loginName, pass);

            byte[] obj = Core.Serialization.Serializer.Serialize(item, item.GetType());

            var conflicts = repo.Compare(obj, item.ItemId, loginName, pass).ToList<ItemConflict>();

            repo.Dispose();
            return conflicts;
        }