} else {
alternativeImage = imageProcessor.makeAThumbnail(buffImage,
resolution.getWidth(), resolution.getHeight());
}
byte[] alternativeImageBytes = bufferedImage2ByteArray(alternativeImage, mediaType);
DiscobitsHandler contentHandler = (DiscobitsHandler) discobitTracker.getService();
UriRef thumbnailUri = createThumbnailUri((UriRef) node.getNode(), alternativeImage, extact);
contentHandler.put(thumbnailUri, mediaType, alternativeImageBytes);
Lock writeLock = node.writeLock();
writeLock.lock();
try {
node.addProperty(DISCOBITS.thumbnail, thumbnailUri);
return thumbnailUri;