public function getObject($forceInstance = false)
    {
        if (false === $forceInstance
            && true === $this->getValidationResult()->hasErrors()
        ) {
            throw new Exception(
                'Trying to access a configuration object which contains errors. You should first check if it is error free, then use it: "$yourObject->getValidationResult()->hasErrors()".',
                1471880442
            );
        }

        return $this->object;
    }
public function getObject($forceInstance = false)
    {
        if (false === $forceInstance
            && true === $this->getValidationResult()->hasErrors()
        ) {
            throw new Exception(
                'Trying to access a configuration object which contains errors. You should first check if it is error free, then use it: "$yourObject->getValidationResult()->hasErrors()".',
                1471880442
            );
        }

        return $this->object;
    }
public function getObject ( $ forceInstance = false ) { if ( false === $ forceInstance && true === $ this -> getValidationResult ( ) -> hasErrors ( ) ) { throw new Exception ( 'Trying to access a configuration object which contains errors. You should first check if it is error free, then use it: "$yourObject->getValidationResult()->hasErrors()".' , 1471880442 ) ; } return $ this -> object ; }
Returns the real instance of the configuration object.

Please note that you should always check the validation result before
even getting the object.
Use: `$myObject->getValidationResult()->hasErrors()`

Warning: if you set `$forceInstance` to true, it means that the object
will be returned even if it contain errors, so be careful if you intend
to use it.

@param bool $forceInstance If set to true, the instance will be returned even if the validation result contains errors. Should be used only if you know what you are doing.
@return ConfigurationObjectInterface
@throws Exception
Returns the real instance of the configuration object .