public static ContentType getContentType(String httpContentType){  if(httpContentType.toLowerCase().equals("image/gif")){
public static ContentType getContentType(String httpContentType) {  String contentTypeInLowerCase = httpContentType.toLowerCase(); if (contentTypeInLowerCase.equals("image/gif")) {
    public static ContentType getContentType(String httpContentType){                if(httpContentType.toLowerCase().equals("image/gif")){            return GIF;        }        if(httpContentType.toLowerCase().equals("image/jpeg") || httpContentType.toLowerCase().equals("image/jpg")){            return JPG;        }        if(httpContentType.toLowerCase().equals("image/png")){            return PNG;        }                return null;    }