Purpose of : MemberPrimaryId being validated against domain
Can you please explain the purpose of this validation? Here, if the memberPrimaryId ends with the domain in the configuration the error thrown is:Member group %s not found"
if (!memberPrimaryId.endsWith(this.config.getDomain())) {
return EntityNode.createMemberNodeForNewUser(memberDesId, partitionId);
} else {
throw new AppException(HttpStatus.NOT_FOUND.value(), HttpStatus.NOT_FOUND.getReasonPhrase(), String.format("Member group %s not found", memberPrimaryId));
}
}```