docs: public boolean hasObjectWithPrefix(NamingConstants.JavaColonNamespace namespace, String name) throws NamingException {
          if (namespace == NamingConstants.JavaColonNamespace.COMP) {
              return hasObjectWithPrefix(compLock, compBindings, name);
          }
          if (namespace == NamingConstants.JavaColonNamespace.COMP_ENV) {
              return hasObjectWithPrefix(compLock, compEnvBindings, name);
          }
          if (namespace == this.namespace) {
              return hasObjectWithPrefix(nonCompEnvLock, nonCompBindings, name);
          }
          return false;
      }