public List<CampaignType> getAllCampaign() { try { CampaignService campaignService = commonService.getService(CampaignService.class); GetAllCampaignRequest getAllCampaignRequest = new GetAllCampaignRequest(); GetAllCampaignResponse response = campaignService.getAllCampaign(getAllCampaignRequest); if (response == null) { return Collections.emptyList(); } return response.getCampaignTypes(); } catch (final Exception e) { e.printStackTrace(); } return Collections.emptyList(); }