protected void onValidate(IValidatable<String> validatable) {
final String name = validatable.getValue();
if (name.equals(previousName)) {
return;
}
final GridSetBroker gridSetBroker = GWC.get().getGridSetBroker();
if (previousName != null) {
gridSetBroker.get(previousName);
}
GridSet gridSet = gridSetBroker.get(name);
if (gridSet != null) {
error(validatable, "gridSetAlreadyExists",
Collections.singletonMap("name", (Object) name));
}
}