private static String getProxyClassName(String name, Set<String> pkgs, Map<String, String> mappedUniName,
            boolean isUniName) {

        String ret = "";
        if (name.indexOf(PACKAGE_SPLIT_CHAR) != -1) {
            String[] split = name.split("\\.");
            boolean classFound = false;
            for (String string : split) {
                if (pkgs.contains(string) && !classFound) {
                    ret += string + PACKAGE_SPLIT_CHAR;
                } else {
                    classFound = true;
                    ret += getProxyClassName(string, mappedUniName, isUniName) + PACKAGE_SPLIT_CHAR;
                }
            }
            ret = StringUtils.removeEnd(ret, PACKAGE_SPLIT);
        } else {
            String clsName = name;

            String uniName = mappedUniName.get(clsName);
            if (uniName == null) {
                uniName = clsName + getUniNameSuffix(isUniName);
                mappedUniName.put(clsName, uniName);
            }
            clsName = uniName;
            ret = clsName;
        }
        return ret;
    }
private static String getProxyClassName ( String name , Set < String > pkgs , Map < String , String > mappedUniName , boolean isUniName ) { String ret = "" ; if ( name . indexOf ( PACKAGE_SPLIT_CHAR ) != - 1 ) { String [ ] split = name . split ( "\\." ) ; boolean classFound = false ; for ( String string : split ) { if ( pkgs . contains ( string ) && ! classFound ) { ret += string + PACKAGE_SPLIT_CHAR ; } else { classFound = true ; ret += getProxyClassName ( string , mappedUniName , isUniName ) + PACKAGE_SPLIT_CHAR ; } } ret = StringUtils . removeEnd ( ret , PACKAGE_SPLIT ) ; } else { String clsName = name ; String uniName = mappedUniName . get ( clsName ) ; if ( uniName == null ) { uniName = clsName + getUniNameSuffix ( isUniName ) ; mappedUniName . put ( clsName , uniName ) ; } clsName = uniName ; ret = clsName ; } return ret ; }
Gets the proxy class name.

@param name the name
@param pkgs the pkgs
@param mappedUniName the mapped uni name
@param isUniName the is uni name
@return the proxy class name