- String sites = null;
- for (PropertySource source : environment.getPropertySources()) {
- Object found = source.getProperty("juplo.sites");
- if (found != null)
- sites = found.toString();
- }
-
- if (sites == null)
- throw new IllegalArgumentException("Parameter juplo.sites is not set!");