if (object != null && object instanceof Validatable) {
ModelFactory modelFactory = ModelFactory.getDefaultInstance();
Validator validator = modelFactory.createValidator();
// Validate the object being created
validator.validate((Validatable) object);
// Validate the already created selectors
List selectors = listBuilder.getItems();
Iterator it = selectors.iterator();
while (it.hasNext() && validator.getDiagnostics().isEmpty()) {