code: public function findParameter($parameter, $name = null)
      {
          if ($parameter instanceof ParameterInterface) {
              $namespace = $parameter->getNamespace();
              $name = $parameter->getName();
              $data = $this->read($namespace);
              $parameter->setValue($data[$name]);
  
              return $parameter;
          } elseif (!is_string($parameter)) {
              throw new Exception\InvalidArgumentException(
                  sprintf(
                      '%s expects parameter 1 to be string or an instance of HtSettingsModule\Entity\ParameterInterface, %s provided instead',
                      __METHOD__,
                      is_object($parameter) ? get_class($parameter) : gettype($parameter)
                  )
              );
          }
  
          $namespace = $parameter;
          $data = $this->read($namespace);
          $parameter = clone $this->entityPrototype;
          $parameter->setName($name);
          $parameter->setValue($data[$name]);
          $parameter->setNamespace($namespace);
  
          return $parameter;
      }
docs: {@inheritDoc}