* @param string
*/
public static void changeVariant(Resource target, String contentURI, String origContentType, String contentType, String language) {
log.debug("changing variant with content "+contentURI+" to "+language);
Model model = target.getModel();
ResIterator contentURIMatching = model.listSubjectsWithProperty(
DOCUMENT.content, model.createResource(contentURI));
while (contentURIMatching.hasNext()) {
Resource current = contentURIMatching.nextResource();
log.debug("changing "+current);
if (current.hasProperty(DOCUMENT.contentType, origContentType)) {