private static void getIntProperty(
     String propertyName, Integer defaultValue, Action1<Integer> action) {
   String property = administrationService.getGlobalProperty(propertyName);
   if (!StringUtils.isEmpty(property) && NumberUtils.isNumber(property)) {
     action.apply(Integer.parseInt(property));
   } else if (defaultValue != null) {
     action.apply(defaultValue);
   }
 }
 private static void getBoolProperty(
     String propertyName, Boolean defaultValue, Action1<Boolean> action) {
   String property = administrationService.getGlobalProperty(propertyName);
   if (!StringUtils.isEmpty(property)) {
     action.apply(Boolean.parseBoolean(property));
   } else if (defaultValue != null) {
     action.apply(defaultValue);
   }
 }