class WCSUtil {

    public static String convertCRSToNonOGC(String crs) {
        Matcher matcher = PATTERN_OGC_URN.matcher(crs);
        if (matcher.matches()) {
            return (new StringBuilder()).
                    append(matcher.group(1)).
                    append(':').
                    append(matcher.group(2)).
                    toString();
        } else {
            throw new IllegalArgumentException("CRS " + crs + " is not OGC URN");
        }
    }

}