public PostOption getPostOption() { PostOption option = new PostOption(); option.setMaxshow( NumberUtils.toInteger(optionsService.getOptionValue(OptionConstants.MAXSHOW), 10)); option.setAllowComment( Boolean.parseBoolean(optionsService.getOptionValue(OptionConstants.ALLOW_COMMENT))); option.setDefaultCategory(optionsService.getOptionValue(OptionConstants.DEFAULT_CATEGORY_ID)); return option; }