src/main/java/application/rest/v1/configmaps/KindActionMappingProcessor.java
/**
     * Process mapnames with variable substitution if applies and store the mapnames along with their
     * namespaces in a list according to the configmap hierarchy and precedence in descending order 
     * (the kams has the same precedence in ascending order)
     * 
     * @param configMapsFound configmaps found
     * @param namespace matching resource's namespace
     * @return processed configmap list
     */
Process mapnames with variable substitution if applies and store the mapnames along with their
namespaces in a list according to the configmap hierarchy and precedence in descending order
(the kams has the same precedence in ascending order)

@param configMapsFound configmaps found
@param namespace matching resource's namespace
@return processed configmap list
Process mapnames with variable substitution if applies and store the mapnames along with their namespaces in a list according to the configmap hierarchy and precedence in descending order ( the kams has the same precedence in ascending order ) @param configMapsFound configmaps found @param namespace matching resource ' s namespace @return processed configmap list
private ArrayList<QName> processCandidateMapnames(QName[][][] configMapsFound, String namespace, String configMapName) {
        String methodName = "processCandidateMapnames";
        ArrayList<QName> configMapList = new ArrayList<QName> ();
        for (int ksnIdx=KSN; ksnIdx>=0; ksnIdx--) {
            for (int precedenceIdx=MAX_PRECEDENCE-1; precedenceIdx>=0; precedenceIdx--) {
                for (int kamNIdx=0; kamNIdx<KAM_N; kamNIdx++) { 
                    QName aQName = configMapsFound[precedenceIdx][kamNIdx][ksnIdx];        
                    if (aQName != null) {
                        String rawMapName = aQName.getLocalPart();             
                        String actualMapName = mapNameSubstitute(rawMapName, namespace);
                        if (Logger.isDebugEnabled()) 
                            Logger.log(CLASS_NAME, methodName, Logger.LogType.DEBUG, 
                            "rawMapName = " + rawMapName + ", actualMapName = " + actualMapName + ", configMapName = " + configMapName);     
                        if (!actualMapName.equals(configMapName) && configMapName.equals(UNREGISTERED)) {
                            actualMapName = configMapName;
                        }        
                        if (Logger.isDebugEnabled()) 
                            Logger.log(CLASS_NAME, methodName, Logger.LogType.DEBUG, 
                                "actualMapName = " + actualMapName);
                        configMapList.add(new QName(aQName.getNamespaceURI(), actualMapName));
                    }
                }
            }
        }
        return configMapList;
    }
private ArrayList < QName > processCandidateMapnames ( QName [ ] [ ] [ ] configMapsFound , String namespace , String configMapName ) { String methodName = "processCandidateMapnames" ; ArrayList < QName > configMapList = new ArrayList < QName > ( ) ; for ( int ksnIdx = KSN ; ksnIdx >= 0 ; ksnIdx -- ) { for ( int precedenceIdx = MAX_PRECEDENCE - 1 ; precedenceIdx >= 0 ; precedenceIdx -- ) { for ( int kamNIdx = 0 ; kamNIdx < KAM_N ; kamNIdx ++ ) { QName aQName = configMapsFound [ precedenceIdx ] [ kamNIdx ] [ ksnIdx ] ; if ( aQName != null ) { String rawMapName = aQName . getLocalPart ( ) ; String actualMapName = mapNameSubstitute ( rawMapName , namespace ) ; if ( Logger . isDebugEnabled ( ) ) Logger . log ( CLASS_NAME , methodName , Logger . LogType . DEBUG , "rawMapName = " + rawMapName + ", actualMapName = " + actualMapName + ", configMapName = " + configMapName ) ; if ( ! actualMapName . equals ( configMapName ) && configMapName . equals ( UNREGISTERED ) ) { actualMapName = configMapName ; } if ( Logger . isDebugEnabled ( ) ) Logger . log ( CLASS_NAME , methodName , Logger . LogType . DEBUG , "actualMapName = " + actualMapName ) ; configMapList . add ( new QName ( aQName . getNamespaceURI ( ) , actualMapName ) ) ; } } } } return configMapList ; }
Process mapnames with variable substitution if applies and store the mapnames along with their
 namespaces in a list according to the configmap hierarchy and precedence in descending order
 (the kams has the same precedence in ascending order)
Process mapnames with variable substitution if applies and store the mapnames along with their namespaces in a list according to the configmap hierarchy and precedence in descending order ( the kams has the same precedence in ascending order )