code: public final void update (final String targetName, final int connectionID, final SettingsMap response) throws NoSuchSessionException {
  
          final SessionConfiguration sc;
          synchronized (sessionConfigs) {
              sc = sessionConfigs.get(targetName);
  
              synchronized (sc) {
                  if (sc == null) { throw new NoSuchSessionException("A session with the ID '" + targetName + "' does not exist."); }
  
                  synchronized (response) {
                      SettingEntry se;
                      for (Map.Entry<OperationalTextKey , String> e : response.entrySet()) {
                          synchronized (globalConfig) {
                              se = globalConfig.get(e.getKey());
  
                              if (se == null) {
                                  if (LOGGER.isWarnEnabled()) {
                                      LOGGER.warn("This key " + e.getKey() + " is not in the globalConfig.");
                                  }
                                  continue;
                              }
  
                              synchronized (se) {
                                  if (se.getScope().compareTo(VALUE_SCOPE_SESSION) == 0) {
                                      sc.updateSessionSetting(e.getKey(), e.getValue(), se.getResult());
                                  } else if (se.getScope().compareTo(VALUE_SCOPE_CONNECTION) == 0) {
                                      sc.updateConnectionSetting(connectionID, e.getKey(), e.getValue(), se.getResult());
                                  }
                              }
                          }
                      }
                  }
              }
          }
      }
docs: Updates the stored settings of a connection with these values from the response of the iSCSI Target.
  
  @param targetName The name of the iSCSI Target.
  @param connectionID The ID of the connection within this iSCSI Target.
  @param response The response settings.
  @throws NoSuchSessionException if a session with this target name is not open.