change visibility of newContainer to protected (#287)