/**
  * Helper method for adding to the response's already existing collection. This method should only
  * be called before returning the response to the client.
  */
 public void addCollection(Collection bCollection) {
   if (bCollection != null) {
     Iterator iter = bCollection.iterator();
     while (iter.hasNext()) {
       collection.add(iter.next());
     }
   }
 }
 /**
  * Add multiple exceptions to exception collection. This method should only be called before
  * returning the response to the client.
  */
 public void addException(Collection bException) {
   if (bException != null && bException.size() > 0) {
     setStatus(STATUS_FAILURE);
     initExceptions();
     Iterator iter = bException.iterator();
     while (iter.hasNext()) {
       exceptions.add(iter.next());
     }
   }
 }
 /**
  * Add single exception to exceptions collection. This method should only be called before
  * returning the response to the client.
  */
 public void addException(JAXRException except) {
   initExceptions();
   exceptions.add(except);
   setStatus(STATUS_FAILURE);
 }