ResourceBundle bundle=PropertyResourceBundle.getBundle("server"); p.setLotteryName(bundle.getString("lotteryName"));