code: private static boolean shouldSetAndDoLogging(String propName, boolean isStatic, boolean isBase, Map<String, Object> xtpProperties, Object myValue, Object baseValue,
                                                   boolean stringEquals) {
          final String methodName = "shouldSetAndDoLogging";
          final String propFoundMessage = "SessionContext.propertyFound";
          final String serverLevelConfigOnlyMessage = "SessionProperties.serverLevelConfigOnly";
          final String propFoundButAlreadySetMessage = "SessionProperties.propertyFoundButAlreadySet";
  
          // variable that tells us whether to set the variable in our SMC
          boolean rc = false;
          if (isStatic) {
              if (isBase) {
                  LoggingUtil.SESSION_LOGGER_CORE.logp(Level.FINE, methodClassName, methodName, propFoundMessage, new Object[] { propName, myValue });
                  rc = true;
              } else if (xtpProperties.get(propName) != null) { // otherwise it's a webcontainer or system prop and we don't need to log
                                                                // it
                  if (myValue != baseValue && !stringEquals) {
                      // only log error if it is not equal to the server level config
                      LoggingUtil.SESSION_LOGGER_CORE.logp(Level.WARNING, methodClassName, methodName, serverLevelConfigOnlyMessage, new Object[] { propName, myValue, baseValue });
                  } else {
                      // Log message that it is set but equal!
                      LoggingUtil.SESSION_LOGGER_CORE.logp(Level.FINE, methodClassName, methodName, propFoundButAlreadySetMessage, new Object[] { propName, myValue });
                  }
              }
          } else {
              if (isBase || xtpProperties.get(propName) != null) {
                  // only log the message for the serverLevelConfig or if this app has
                  // overridden the property
                  LoggingUtil.SESSION_LOGGER_CORE.logp(Level.FINE, methodClassName, methodName, propFoundMessage, new Object[] { propName, myValue });
              }
              rc = true;
          }
          return rc;
      }
docs: baseValue, boolean stringEquals) {