*/
@Singleton
public class BlobToFileInfo implements Function<BlobMetadata, MutableFileInfo> {
@Override
public MutableFileInfo apply(BlobMetadata base) {
MutableFileInfo to = new MutableFileInfoImpl();
to.setUrl(base.getUri());
to.setMimeType(base.getContentMetadata().getContentType());
to.setName(base.getName());
to.setModified(base.getLastModified());
if (base.getContentMetadata().getContentLength() != null)
to.setBytes(base.getContentMetadata().getContentLength());
return to;
}