code: private function getOptionsViaDcGeneral($metaModel, $environment, $attribute)
      {
          $factory   = DcGeneralFactory::deriveEmptyFromEnvironment($environment)
              ->setContainerName($metaModel->getTableName());
          $dcGeneral = $factory->createDcGeneral();
  
          $subEnv = $dcGeneral->getEnvironment();
          $optEv  = new GetPropertyOptionsEvent($subEnv, $subEnv->getDataProvider()->getEmptyModel());
          $optEv->setPropertyName($attribute->getColName());
          $subEnv->getEventDispatcher()->dispatch(GetPropertyOptionsEvent::NAME, $optEv);
  
          $options = $optEv->getOptions();
  
          return $options;
      }
docs: Obtain the values of a property within a dc-general instance.
  
  @param IMetaModel           $metaModel   The metamodel instance to obtain the values from.
  
  @param EnvironmentInterface $environment The environment used in the input screen table dc-general.
  
  @param IAttribute           $attribute   The attribute to obtain the values for.
  
  @return array