private String populateUnitPrice(LineItemOrder lineItemOrder) {
   if (lineItemOrder.getMonetaryDetail() != null) {
     if (lineItemOrder.getMonetaryDetail().get(0).getMonetaryLineItemInformation() != null) {
       return lineItemOrder
           .getMonetaryDetail()
           .get(0)
           .getMonetaryLineItemInformation()
           .get(0)
           .getAmount();
     }
   }
   return null;
 }
  /**
   * This method returns ListPrice from the List of PriceInformation got from lineItemOrder. If
   * there are no PriceInformation then it return null.
   *
   * @param lineItemOrder
   * @return Price
   */
  private String getListPrice(LineItemOrder lineItemOrder) {

    List<MonetaryDetail> monetaryDetails = lineItemOrder.getMonetaryDetail();
    if (monetaryDetails != null && monetaryDetails.size() > 0) {
      if (monetaryDetails.get(0).getMonetaryLineItemInformation() != null
          && monetaryDetails.get(0).getMonetaryLineItemInformation().size() > 0) {
        if (monetaryDetails.get(0).getMonetaryLineItemInformation().get(0).getAmountType() != null
            && monetaryDetails
                .get(0)
                .getMonetaryLineItemInformation()
                .get(0)
                .getAmountType()
                .contains("2")) {
          return monetaryDetails.get(0).getMonetaryLineItemInformation().get(0).getAmount();
        }
      }
    }
    return null;
  }