if (rarNameOfResource.contains(ConnectorConstants.EMBEDDEDRAR_NAME_DELIMITER)) {
String embeddedRARName = ConnectorsUtil.getRarNameFromApplication(rarNameOfResource);
for (Module module : staleRars) {
//check whether these RARs are referenced by app-scoped-resources ?
if (ResourceUtil.getActualModuleNameWithExtension(module.getName()).equals(embeddedRARName)) {
throw new ResourceConflictException("Existing resources refer RAR " +
"[ " + embeddedRARName + " ] which is" +
"not present in the re-deployed application ["+appName+"] anymore. " +
"re-deploy the application after resolving the conflicts");
}
}