ConfigServiceAdminStub configServiceAdminStub =
new ConfigServiceAdminStub(getAdminServiceURL("ConfigServiceAdmin"));
authenticate(configServiceAdminStub);
OMElement configElement = loadResource(filePath);
configServiceAdminStub.updateConfiguration(configElement);
configServiceAdminStub.cleanup();
}
protected OMElement loadResource(String path) {
ArtifactReader artifactReader = new ArtifactReader();
return artifactReader.getOMElement(getClass().getResource(path).getPath());