Checking that the tomcat class has been defined before creating tomcat instances