for (PropertiesReference ref : list) {
switch (ref.type) {
case CLASSLOADED:
if(attribs.locale!= null){
LocaleStringBuilder builder = new LocaleStringBuilder(ref.data,attribs.locale);
List<String> list = builder.getSearchStrings();
for(String localizedPath :list){
try {
loadFromClasspath(localizedPath);
}catch(Exception x) {}
}
}else{
loadFromClasspath(ref.data);
}
break;
case DIRECT:
loadFromDirect(ref.data);
break;
case EXTERNAL:
if(attribs.locale!= null){
ExternalizedLocaleStringBuilder builder = new ExternalizedLocaleStringBuilder(ref.data,attribs.locale);
List<String> list = builder.getValidPaths();
for(String localizedPath :list){
try {
loadFromFile(localizedPath);
}catch(Exception x) {}
}