public Object GetValue(IParsingContext context)
 {
     return context.GetObject(IdRef);
 }
        private ClassWithMembersAndTypesBase GetMetadataObject(IParsingContext context)
        {
            var obj = context.GetObject(MetadataId) as ClassWithMembersAndTypesBase;
            Check.NotNull(obj, "Metadata object was not of type ClassWithMembersAndTypesBase.");

            return obj;
        }