/**
  * Initializes the the server with the parsed configuration file.
  *
  * @param \TechDivision\Configuration\Interfaces\ConfigurationInterface $configuration The parsed configuration file
  */
 public function __construct(ConfigurationInterface $configuration)
 {
     // initialize the configuration and the base directory
     $systemConfiguration = new AppserverNode();
     $systemConfiguration->initFromConfiguration($configuration);
     $this->setSystemConfiguration($systemConfiguration);
     // initialize the server instance
     $this->init();
 }
 /**
  * Returns a appserver node initialized with a mock system configuration.
  *
  * @return \TechDivision\ApplicationServer\Api\Node\AppserverNode The requested appserver node
  */
 public function getAppserverNode()
 {
     $appserverNode = new AppserverNode();
     $appserverNode->initFromConfiguration($this->getAppserverConfiguration());
     return $appserverNode;
 }