import org.springframework.binding.message.MessageBuilder;
import org.springframework.binding.message.MessageContext;
public class GroupFormValidator {
public void validateEditDetails(GroupForm group, MessageContext context) {
if(StringUtils.isBlank(group.getName())) {
<BUG>context.addMessage(new MessageBuilder().error().source("name")
.code("errors.group.name.empty")
.defaultText("Please choose a group name").build());</BUG>
}
}

import org.springframework.binding.message.MessageBuilder;
import org.springframework.binding.message.MessageContext;
public class GroupFormValidator {
public void validateEditDetails(GroupForm group, MessageContext context) {
if(StringUtils.isBlank(group.getName())) {
context.addMessage(new MessageBuilder().error().source("name")
.code("please.enter.name").build());
