@SuppressWarnings("unchecked") public static List<String> parseGetBucketReplicationLocation(InputStream responseBody) throws ResponseParseException {
  try {
    Element root=getXmlRootElement(responseBody);
    List<String> locationList=new ArrayList<String>();
    List<Element> locElements=root.getChildren("Location");
    for (    Element locElem : locElements) {
      locationList.add(locElem.getText());
    }
    return locationList;
  }
 catch (  Exception e) {
    throw new ResponseParseException(e.getMessage(),e);
  }
}

@ SuppressWarnings ( "unchecked" ) public static List < String > parseGetBucketReplicationLocation ( InputStream responseBody ) throws ResponseParseException { try { Element root = getXmlRootElement ( responseBody ) ; List < String > locationList = new ArrayList < String > ( ) ; List < Element > locElements = root . getChildren ( "Location" ) ; for ( Element locElem : locElements ) { locationList . add ( locElem . getText ( ) ) ; } return locationList ; } catch ( Exception e ) { throw new ResponseParseException ( e . getMessage ( ) , e ) ; } }
unmarshall get bucket replication response body to replication location .
