String entityId = entity.getId();
CmsUUID structureId = entityIdToUuid(entityId);
CmsObject cms = getCmsObject();
try {
Locale contentLocale = new Locale(locale);
<BUG>CmsResource resource = cms.readResource(structureId);
CmsFile file = cms.readFile(resource);</BUG>
CmsXmlContent content = CmsXmlContentFactory.unmarshal(cms, file);
if (content.hasLocale(contentLocale)) {
content.removeLocale(contentLocale);

String entityId = entity.getId();
CmsUUID structureId = entityIdToUuid(entityId);
CmsObject cms = getCmsObject();
try {
Locale contentLocale = new Locale(locale);
CmsResource resource = cms.readResource(structureId);
ensureLock(resource);
CmsFile file = cms.readFile(resource);
CmsXmlContent content = CmsXmlContentFactory.unmarshal(cms, file);
if (content.hasLocale(contentLocale)) {
content.removeLocale(contentLocale);
