keeping JavaStreamingContext in sync with StreamingContext + adding comments for better clarity