String groupInstanceKey = getGroupInstanceKey(groupKey, instanceKey);
// �����request�г�ʼ������group instance��
// ��ȷ�������ظ���ʼ��ͬһ��group instance��
if (!groups.containsKey(groupInstanceKey) && !ignoredGroups.contains(groupInstanceKey)) {
GroupConfig groupConfig = getFormConfig().getGroupConfigByKey(groupKey);
if (groupConfig == null) {
log.debug("No group associated with parameter: {}", key);
continue;
} else if ((forcePostOnly || groupConfig.isPostOnly())
&& !"post".equalsIgnoreCase(request.getMethod())) {
log.warn("Group {} can only read from POST request: {}", groupConfig.getName(), key);
ignoredGroups.add(groupInstanceKey);
setValid(false);
continue;
} else {
if (log.isDebugEnabled()) {
if (DEFAULT_GROUP_INSTANCE_KEY.equals(instanceKey)) {
log.debug("Initializing form group: {}", groupConfig.getName());
} else {
log.debug("Initializing form group: {}[{}]", groupConfig.getName(), instanceKey);
}
}
Group group = new GroupImpl(groupConfig, this, instanceKey);