{
// list of resolvers to use
List<PropertyResolver> resolvers = new ArrayList<PropertyResolver>();
// first, try the system properties
resolvers.add(new PropertyResolver() {
public String getValue(String key) {
return System.getProperty(prop);
}
});
// next try the servlet context
resolvers.add(new PropertyResolver() {
public String getValue(String key) {
return context.getInitParameter(prop);
}
});