public static UserQos parseGetUserQos(InputStream responseBody) throws ResponseParseException {
  try {
    Element root=getXmlRootElement(responseBody);
    UserQos userQos=new UserQos();
    if (root.getChild("StorageCapacity") != null) {
      userQos.setStorageCapacity(Integer.parseInt(root.getChildText("StorageCapacity")));
    }
    return userQos;
  }
 catch (  Exception e) {
    throw new ResponseParseException(e.getMessage(),e);
  }
}

public static UserQos parseGetUserQos ( InputStream responseBody ) throws ResponseParseException { try { Element root = getXmlRootElement ( responseBody ) ; UserQos userQos = new UserQos ( ) ; if ( root . getChild ( "StorageCapacity" ) != null ) { userQos . setStorageCapacity ( Integer . parseInt ( root . getChildText ( "StorageCapacity" ) ) ) ; } return userQos ; } catch ( Exception e ) { throw new ResponseParseException ( e . getMessage ( ) , e ) ; } }
unmarshall get user qos response body to user qos .
