public static Dynamic.Schema BuildSchema(TCM.Schema tcmSchema, BuildManager manager)
        {
			if (tcmSchema == null) {
				return null;
			}
			Dynamic.Schema s = new Dynamic.Schema();
			s.Title = tcmSchema.Title;
			s.Id = tcmSchema.Id.ToString();

            if (!manager.BuildProperties.OmitContextPublications)
                s.Publication = manager.BuildPublication(tcmSchema.ContextRepository);
            if (!manager.BuildProperties.OmitFolders)
                s.Folder = manager.BuildOrganizationalItem((TCM.Folder)tcmSchema.OrganizationalItem);

            if (!String.IsNullOrEmpty(tcmSchema.RootElementName))
            {
                s.RootElementName = tcmSchema.RootElementName;
            }
            // note that non-webschemas and multimedia schema's lack a root element. In order not
            // to break deserialization, setting it to undefined will do
            else
            {
                s.RootElementName = "undefined";
            }

			return s;
		}
        public static Dynamic.Schema BuildSchema(TCM.Schema tcmSchema, BuildManager manager)
        {
            if (tcmSchema == null)
            {
                return(null);
            }
            Dynamic.Schema s = new Dynamic.Schema();
            s.Title = tcmSchema.Title;
            s.Id    = tcmSchema.Id.ToString();

            if (!manager.BuildProperties.OmitContextPublications)
            {
                s.Publication = manager.BuildPublication(tcmSchema.ContextRepository);
            }
            if (!manager.BuildProperties.OmitFolders)
            {
                s.Folder = manager.BuildOrganizationalItem((TCM.Folder)tcmSchema.OrganizationalItem);
            }

            if (!String.IsNullOrEmpty(tcmSchema.RootElementName))
            {
                s.RootElementName = tcmSchema.RootElementName;
            }
            // note that non-webschemas and multimedia schema's lack a root element. In order not
            // to break deserialization, setting it to undefined will do
            else
            {
                s.RootElementName = "undefined";
            }

            return(s);
        }