ComponentManager manager)
throws ProcessingException {
if (this.authSaveResource == null) {
throw new ProcessingException("The context " + this.name + " does not support saving.");
}
ResourceConnector connector = null;
try {
synchronized(this.sunRiseContext) {
DocumentFragment fragment = this.getXML(path);
if (fragment == null) {
// create empty fake fragment
fragment = XMLUtil.createDocument().createDocumentFragment();
}
if (parameters != null) {
parameters = (SourceParameters)parameters.clone();
parameters.add(this.authSaveResource.getResourceParameters());
} else if (this.authSaveResource.getResourceParameters() != null) {
parameters = (SourceParameters)this.authSaveResource.getResourceParameters().clone();
}
parameters = this.createParameters(parameters,
this.handlerName,
path,
null);
connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
connector.saveXML(this.authSaveResource.getResourceType(), null,
this.authSaveResource.getResourceIdentifier(), parameters,
fragment);
} // end synchronized
} catch (ComponentException ce) {