public function createStream( $resource )
	{
		if( is_resource( $resource ) === true ) {
			return new \Slim\Http\Stream( $resource );
		}

		if( ( $fh = @fopen( $resource, 'r' ) ) !== false ) {
			return new \Slim\Http\Stream( $fh );
		}

		throw new \Aimeos\MW\Exception( sprintf( 'Unable to open file "%1$s"', $resource ) );
	}