code: public static void setAllBndAndExt(ComponentNameSpaceConfiguration compNSConfig,
                                         Map<JNDIEnvironmentRefType, Map<String, String>> allBindings,
                                         Map<String, String> envEntryValues,
                                         ResourceRefConfigList resRefList) {
          for (JNDIEnvironmentRefType refType : JNDIEnvironmentRefType.VALUES) {
              if (refType.getBindingElementName() != null) {
                  compNSConfig.setJNDIEnvironmentRefBindings(refType.getType(), allBindings.get(refType));
              }
          }
  
          compNSConfig.setEnvEntryValues(envEntryValues);
          compNSConfig.setResourceRefConfigList(resRefList);
      }
docs: Update a ComponentNameSpaceConfiguration object with processed binding
  and extension metadata.
  
  @param compNSConfig the configuration to update
  @param allBindings the map of all bindings
  @param envEntryValues the env-entry value bindings map
  @param resRefList the resource-ref binding and extension list