code: public void validateEditDetails(GroupForm group, MessageContext context) {
  
          // ensure the group name is set
          if (StringUtils.isBlank(group.getName())) {
              context.addMessage(
                      new MessageBuilder().error().source("name").code("please.enter.name").build());
          }
      }
docs: Validate the detail editing group view
  
  @param group
  @param context