//here we should locate some mediaType specific handlers
//a quick hack
final ByteArrayOutputStream resultWriter = new ByteArrayOutputStream(variant.length + 1000);
OutputStream out = resultWriter;
for (String rootLinkIndicator : rootLinkIndicators) {
out = new ReplacingOutputStream(out,
(rootLinkIndicator + "/").getBytes(UTF8),
(rootLinkIndicator + rootLinkPrefix + "/").getBytes(UTF8));
}
out.write(variant);
out.close();