List<IValidation> newList = new ArrayList<IValidation>();
for (String id : ids) {
Object bean = this.getBeanFactory().getBean(id);
if (bean instanceof IValidation) {
IValidation validation = (IValidation) bean;
newList.add(validation);
} else if (bean instanceof List<?>) {
List<IValidation> validations = (List<IValidation>) bean;
newList.addAll(validations);
}