This image contains the complete isJsonMime method with the following code. public boolean isJsonMime(String mime) { return mime != null && mime.matches("(?i)application\\/(.*)json(;.*)?"); }