code: private function normalizeArray($cfg)
      {
          $return = array(
              'debug' => array(),  // initialize with debug... we want debug values first
          );
          $configKeys = $this->getConfigKeys();
          foreach ($cfg as $k => $v) {
              $translated = false;
              foreach ($configKeys as $objName => $objKeys) {
                  if ($k == $objName && \is_array($v)) {
                      $return[$objName] = isset($return[$objName])
                          ? \array_merge($return[$objName], $v)
                          : $v;
                      $translated = true;
                      break;
                  } elseif (\is_array($v) && isset($configKeys[$k])) {
                      continue;
                  } elseif (\in_array($k, $objKeys)) {
                      $return[$objName][$k] = $v;
                      $translated = true;
                      break;
                  }
              }
              if (!$translated) {
                  $return['debug'][$k] = $v;
              }
          }
          if (!$return['debug']) {
              unset($return['debug']);
          }
          return $return;
      }
docs: Normalizes cfg..  groups values by class
  
  converts
  array(
  'collectMethods' => false,
  )
  to
  array(
  'abstracter' => array(
  'collectMethods' => false,
  )
  )
  
  @param array $cfg config array
  
  @return array