String (@NotNull String contentType) { int eqPos = contentType.indexOf("="); if (eqPos > 0) { String result = contentType.substring(eqPos + 1).trim(); result = StringUtil.trimStart(result, "\""); result = StringUtil.trimEnd(result, "\""); if (!result.startsWith("dyn.")) return result; } return null; }