content repository almoust ready

````Java
        if(mime.equals("image/gif")){
            imageExtension = "gif";
        }
        else if(mime.equals("image/png")){
            imageExtension = "png";
        }
        else if(mime.equals("image/bmp")){
            imageExtension = "bmp";
        }
        else if(mime.equals("image/jpeg")){
            imageExtension = "jpeg";
        }
        return imageExtension;
````

or even

````Java
return mime.substring(6,mime.length()-6);
//check for index correctness
````