if (isUpdate) {
if (!file.exists() || !file.canWrite()) {
throw new IllegalStateException("Can't update file, as it is not writeable.");
}
SAXBuilder builder = new SAXBuilder();
SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
builder.setEntityResolver(entityResolver);
doc = builder.build(file);
root = doc.getRootElement();
cacheMbean = findComponentElement(root, mbeanName);