}
AxisModule existingModule = null;
if (configRegistry.resourceExists(modulePath)) {
Resource givenResource = configRegistry.get(modulePath);
existingModule = getAxisModule(givenResource);
givenResource.discard();
}
// if the existingModule is null, check whether there are new versions..
if (existingModule == null) {
String temp = modulePath.substring(0, modulePath.lastIndexOf('/'));
if (configRegistry.resourceExists(temp)) {