ConnectorRuntime runtime = ConnectorRuntime.getRuntime();
if (isRarDeployed(moduleName)) {
if(!ConnectorsUtil.belongsToSystemRA(moduleName)){
ConnectorApplication app = _registry.getConnectorApplication(moduleName);
app.undeployResources();
stopAndRemoveActiveResourceAdapter(moduleName);
String moduleDir = ConnectorsUtil.getLocation(moduleName);
createActiveResourceAdapter(moduleDir, moduleName, app.getClassLoader());
_registry.getConnectorApplication(moduleName).deployResources();
}else{