private static EmbeddedTomcat instantiate ( Class < ? > klass ) { EmbeddedTomcatConfiguration configuration = extractConfiguration ( klass ) ; return configuration == null ? new EmbeddedTomcat ( ) : new EmbeddedTomcat ( configuration ) ; }
Instantiate embedded tomcat to be used in tests .