/** * This method returns the Quantity from the list of QuantityInformation got from lineItemOrder. * If there are no QuantityInformation then it return null. * * @param lineItemOrder * @return Quantity */ private String getQuantity(LineItemOrder lineItemOrder) { List<QuantityInformation> quantityInformation = lineItemOrder.getQuantityInformation(); if (quantityInformation != null && quantityInformation.size() > 0) { List<Qunatity> qunatity = quantityInformation.get(0).getQunatity(); if (qunatity.size() > 0) { return qunatity.get(0).getQuantity(); } } return null; }