public static function getInstance() { if (self::$config == null) { try { self::$config = new App42Config(); } catch (ConfigurationException $e) { throw new RuntimeException(" Instance Cannot be created due to wrong config."); } } return self::$config; }