Campaign resources Get campaigns for (CampaignEntity campaign : mailQ.getCampaigns()) { System.out.println(campaign.getName()); } Get campaign CampaignEntity campaign = mailQ.getCampaign(1L); System.out.println(campaign.getName());