/**
  * Stops capturing output, returning what was captured
  *
  * @return string  The captured output
  */
 public static function stopCapture()
 {
     if (!self::$capturing) {
         throw new fProgrammerException('Output capturing can not be stopped since it has not been started');
     }
     self::$capturing = FALSE;
     return ob_get_clean();
 }