Resource axisDescriptionResource;
try {
//Recover the faulty serviceGroup or service.
if (axisDescription instanceof AxisServiceGroup) {
AxisServiceGroup axisServiceGroup =
(AxisServiceGroup) axisDescription;
axisDescriptionResource = pf.getServiceGroupPM().getServiceGroup(
axisServiceGroup.getServiceGroupName());
pf.getServiceGroupPM().handleExistingServiceGroupInit(
axisDescriptionResource, axisServiceGroup);
//Start all the services in this serviceGroup and remove the special
// parameter
startServiceGroup(axisServiceGroup,
axisServiceGroup.getAxisConfiguration());
log.info("Recovered and Deployed axis2 service group: " +
axisServiceGroup.getServiceGroupName() +
getTenantIdAndDomainString());
} else if (axisDescription instanceof AxisService) {
AxisService axisService = (AxisService) axisDescription;
axisDescriptionResource = pf.getServicePM().getService(axisService);