try {
if (decorate) {
if (isLocked(category)) {
ImageData originalImageData = descriptor
.getImageData();
OverlayIcon overlay = new OverlayIcon(
descriptor, lockDescriptor, new Point(
originalImageData.width,
originalImageData.height));
return manager.createImage(overlay);
}