The last sentence is incorrect It should say: "Then the provided factory will be used to create a JavaStreamingContext"