if ("GetTagImage".equals(commandStr)) {
response.setContentType("image/png;");
InputStream imageStream = null;
VarTagInfo varTagInfo = getVarTagSafely(javaType);
if (varTagInfo.hasImage()) {
imageStream = varTagInfo.openImageStream();
} else {
imageStream = WYSIWYGPlugin.loadTagImage(
WYSIWYGPlugin.getDefault().getBundle(), "metadata/var_icons/DefaultTag.png");
}
IOUtils.copyStream(imageStream, response.getOutputStream());