public static Entity getTemporaryStreamEntity(TemporaryStream ts, String contentType) {
return new TemporaryStreamRequestEntity(ts,contentType);
}
public static Entity getResourceEntity(Resource res, String contentType) {
return new ResourceRequestEntity(res,contentType);
}