public void addPropertySources( Resource... resources ) {
MutablePropertySources propertySources = new MutablePropertySources();
for ( Resource resource : resources ) {
if ( resource.exists() ) {
try {
propertySources.addLast( new ResourcePropertySource( resource ) );
}
catch ( IOException ioe ) {
throw new AcrossException( "Failed to load property resource " + resource, ioe );
}
}