Change check to test for presence of servlet api