@Override
public String getContentType(MarshalledEntry entry) {
//ugly, to be solved together with ISPN-3460
InternalMetadataImpl mei = (InternalMetadataImpl) entry.getMetadata();
MimeMetadata metadata = (MimeMetadata) mei.actual();
return metadata.contentType();
}
@Override
public Metadata buildMetadata(String contentType, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) {
return MimeMetadata.apply(contentType, lifespan, lifespanUnit, maxIdle, maxIdleUnit);