// * New Code with TomcatRepositoryManager
TomcatPackage pkg = TomcatRepositoryManager.getLocalTomcatPackage(tomcatVersion);
// Installing Tomcat as Instance
path = pkg.installAsInstance(name);
instanceObject = path+File.separator+name+".instance";
// Loading server.xml
try {
JAXBContext c = JAXBContext.newInstance(Server.class);