Iterator<String> iter = userDataSourceNames.iterator();
while(iter.hasNext()){
String nextName = iter.next();
int id = userDataSourceSession.getUserDataSourceId(admin, nextName);
if(id == 0){
throw new UserDataSourceException("Error: User Data Source with name : " + nextName + " couldn't be found, aborting operation.");
}
userDataSourceIds.add(Integer.valueOf(id));
}
ret = userDataSourceSession.removeUserData(admin, userDataSourceIds, searchString, removeMultipleMatch);
} catch (RuntimeException e) { // EJBException, ClassCastException, ...