public static String getProjectRootPath(Class<?> cls) {
        String strPath = "";
        if (cls != null) {
            try {
                strPath = URLDecoder.decode(cls.getResource("/").getPath(), "utf-8");
            } catch (UnsupportedEncodingException e) {
                log.error(e.getMessage(), e);
            } 
        }
        return strPath;  
    }