RegistryService rs = connection.getRegistryService();
BusinessQueryManager bqm = rs.getBusinessQueryManager();
blm = rs.getBusinessLifeCycleManager();
Remover remover = new Remover(blm);
ClassificationScheme cScheme = blm.createClassificationScheme("testScheme -- APACHE SCOUT TEST", "Sample Classification Scheme");
Classification classification = createClassificationForUDDI(bqm);
cScheme.addClassification(classification);
ArrayList<ClassificationScheme> cSchemes = new ArrayList<ClassificationScheme>();
cSchemes.add(cScheme);
BulkResponse br = blm.saveClassificationSchemes(cSchemes);
if (br.getStatus() == JAXRResponse.STATUS_SUCCESS)
{
System.out.println("Classification Saved");
Collection coll = br.getCollection();
Iterator iter = coll.iterator();
while (iter.hasNext())
{
Key key = (Key) iter.next();
System.out.println("Saved Key=" + key.getId());
cScheme.setKey(key);
remover.removeClassificationScheme(cScheme);
}//end while
} else {
System.err.println("JAXRExceptions " +
"occurred during save:");