code: private function getClassName($requestedName)
      {
          $exp = explode('/', $requestedName);
  
          $className = array_shift($exp).'\\Controller\\'.implode('\\', $exp).'Controller';
          if (!class_exists($className)) {
              throw new ServiceNotCreatedException(
                  sprintf(
                      'Can\'t find correct controller class for "%s"',
                      $requestedName
                  )
              );
          }
  
          return $className;
      }
docs: Generate class name
  
  @param string $requestedName
  @return string