-reduce duplicate code.
-support Virgo Tomcat Server 3.6.1
-version 1.0.2