sOrg.addAssociation(association);
ArrayList<Association> associations = new ArrayList<Association>();
associations.add(association);
BulkResponse br = blm.saveAssociations(associations, true);
if (br.getStatus() == JAXRResponse.STATUS_SUCCESS) {
System.out.println("Association Saved");
Collection coll = br.getCollection();
Iterator iter = coll.iterator();
while (iter.hasNext()) {
System.out.println("Saved Key=" + iter.next());
}// end while
} else {
System.err.println("JAXRExceptions " + "occurred during save:");
Collection exceptions = br.getExceptions();
Iterator iter = exceptions.iterator();
while (iter.hasNext()) {
Exception e = (Exception) iter.next();
System.err.println(e.toString());
}