code: @Override
      public boolean hasObjectWithPrefix(JavaColonNamespace namespace, String name) throws NamingException {
          if (name == null) {
              throw new InvalidNameException();
          }
          boolean result = false;
          // Get the ComponentMetaData for the currently active component.
          // There is no comp namespace if there is no active component.
          ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
          if (cmd != null) {
              if (namespace == JavaColonNamespace.COMP_WS && name.isEmpty()) {
                  result = true;
              }
          }
          return result;
      }
docs: {@inheritDoc}