src/main/java/application/rest/v1/configmaps/SectionConfigMapProcessor.java
// check if enablement-label specified and if it is on resource
check if enablement-label specified and if it is on resource
check if enablement - label specified and if it is on resource
private boolean enablementLabelInResource(JsonElement enablementLabel, JsonObject annoObj, JsonObject labelObj) {
        if (enablementLabel != null && enablementLabel.isJsonPrimitive()) {
            String enablementlabelStr = enablementLabel.getAsString(); 
            if (annoObj != null) {
                JsonElement e = annoObj.get(enablementlabelStr);
                if (e != null && e.isJsonPrimitive()) {
                    return true;                   
                }
            } else {
                if (Logger.isDebugEnabled()) {
                    Logger.log(className, "processSectionMap", Logger.LogType.DEBUG, "Annotation object is null.");
                }
            }
            if (labelObj != null) {
                JsonElement l = labelObj.get(enablementlabelStr);
                if (l!= null && l.isJsonPrimitive()) {
                    return true;
                }
            } else {
                if (Logger.isDebugEnabled()) {
                    Logger.log(className, "processSectionMap", Logger.LogType.DEBUG, "Label object is null.");
                }
            }            
        }
        return false;                                                          
    }
private boolean enablementLabelInResource ( JsonElement enablementLabel , JsonObject annoObj , JsonObject labelObj ) { if ( enablementLabel != null && enablementLabel . isJsonPrimitive ( ) ) { String enablementlabelStr = enablementLabel . getAsString ( ) ; if ( annoObj != null ) { JsonElement e = annoObj . get ( enablementlabelStr ) ; if ( e != null && e . isJsonPrimitive ( ) ) { return true ; } } else { if ( Logger . isDebugEnabled ( ) ) { Logger . log ( className , "processSectionMap" , Logger . LogType . DEBUG , "Annotation object is null." ) ; } } if ( labelObj != null ) { JsonElement l = labelObj . get ( enablementlabelStr ) ; if ( l != null && l . isJsonPrimitive ( ) ) { return true ; } } else { if ( Logger . isDebugEnabled ( ) ) { Logger . log ( className , "processSectionMap" , Logger . LogType . DEBUG , "Label object is null." ) ; } } } return false ; }
check if enablement-label specified and if it is on resource
check if enablement - label specified and if it is on resource