fileContent = StringUtils.replace(fileContent, "class=\"native\"/>", line);
fileContent = StringUtils.replace(fileContent, "class=\"native\" />", line);
}
}
CacheConfigurationGenerator configGenerator = getCacheConfigurationManager().getConfigGenerator();
String cacheUsage = null;
if (configGenerator != null) {
cacheUsage = configGenerator.getCacheUsage();
}
if (cacheUsage != null) { //Replace the cache usage
String oldCacheUsage = "<cache usage=\"transactional\"/>";
String newCacheUsage = "<cache usage=\"" + cacheUsage + "\"/>";
fileContent = StringUtils.replace(fileContent, oldCacheUsage, newCacheUsage);