Refactored Merchant.java to use RestClient.java and CustomDialog.java