func (suite *ReleaseStoreLibrarySuite) createObjpropResource(rel release.Release, name string, filler func(consumer objprop.Consumer)) {
	resource, _ := rel.NewResource(name, "")
	writer, _ := resource.AsSink()
	consumer := dosObjprop.NewConsumer(writer, suite.descriptors)
	filler(consumer)
	consumer.Finish()
}
func (suite *ReleaseStoreLibrarySuite) createChunkResource(rel release.Release, name string, filler func(consumer chunk.Consumer)) {
	resource, _ := rel.NewResource(name, "")
	writer, _ := resource.AsSink()
	consumer := dosChunk.NewChunkConsumer(writer)
	filler(consumer)
	consumer.Finish()
}
func (library *ReleaseStoreLibrary) openChunkStoreFrom(rel release.Release, name string) (chunkStore chunk.Store, err error) {
	resource, err := rel.GetResource(name)

	if err == nil {
		var reader serial.SeekingReadCloser
		reader, err = resource.AsSource()
		if err == nil {
			var provider chunk.Provider
			provider, err = dosChunk.NewChunkProvider(reader)
			if err == nil {
				chunkStore = library.createSavingChunkStore(provider, resource.Path(), name, func() { reader.Close() })
			}
		}
	}

	return
}
func (library *ReleaseStoreLibrary) openObjpropStoreFrom(rel release.Release, name string) (objpropStore objprop.Store, err error) {
	resource, err := rel.GetResource(name)

	if err == nil {
		var reader serial.SeekingReadCloser
		reader, err = resource.AsSource()
		if err == nil {
			var provider objprop.Provider
			provider, err = dosObjprop.NewProvider(reader, library.descriptors)
			if err == nil {
				objpropStore = library.createSavingObjpropStore(provider, resource.Path(), name, func() { reader.Close() })
			}
		}
	}

	return
}