public void setPersistenceXmlLocations(String... persistenceXmlLocations)
{
ValidationUtils.assertNotNull(persistenceXmlLocations, "persistenceXmlLocations cannot be null");
List<String> goodLocations = new ArrayList<String>();
ResourceEditor editor = new ResourceEditor();
for (String location : persistenceXmlLocations)
{
if (location == null || location.isEmpty())
continue;
editor.setAsText(location);
Resource resource = (Resource) editor.getValue();
if (resource != null && resource.exists())
{
log.debug("using valid persistence XML location: " + location);
goodLocations.add(location);
}