/// <summary>
        /// Creates a new resource, given the attributes for the resource and an indication
        /// of whether item resource should be importable.
        /// </summary>
        /// <param name="attribs"></param>
        /// <param name="allowImport"></param>
        /// <returns></returns>
        public static CpMediaResource CreateResource(ResourceBuilder.ResourceAttributes attribs, bool allowImport)
        {
            CpMediaResource newRes = new CpMediaResource();
            ResourceBuilder.SetCommonAttributes(newRes, attribs);

            return newRes;
        }
        /// <summary>
        /// Creates a new resource, given the attributes for the resource and an indication
        /// of whether item resource should be importable.
        /// </summary>
        /// <param name="attribs"></param>
        /// <param name="allowImport"></param>
        /// <returns></returns>
        public static DvMediaResource CreateResource(ResourceBuilder.ResourceAttributes attribs, bool allowImport)
        {
            DvMediaResource newRes = new DvMediaResource();
            ResourceBuilder.SetCommonAttributes(newRes, attribs);

            newRes.CheckLocalFileExists();
            newRes.AllowImport = allowImport;

            return newRes;
        }