class CollectThenSystemContentTypeMapper implements OpenRosaHttpInterface.FileToContentTypeMapper {

    @NonNull
    @Override
    public String map(String fileName) {
        String extension = FileUtils.getFileExtension(fileName);

        String collectContentType = CollectContentTypeMappings.of(extension);
        String androidContentType = androidTypeMap.getMimeTypeFromExtension(extension);

        if (collectContentType != null) {
            return collectContentType;
        } else if (androidContentType != null) {
            return androidContentType;
        } else {
            return "application/octet-stream";
        }
    }

    public  CollectThenSystemContentTypeMapper(MimeTypeMap androidTypeMap);

}