switch (descriptors.get(0).getType()) {
case FILE:
doc = new FileHotlinkDocument(info, descriptors);
break;
case WEB:
doc = new WebHotlinkDocument(info, descriptors);
break;
case ACTION:
doc = new ActionHotlinkDocument(info, descriptors);
break;
default: