def build_org(self, doc, entity):
match = self.org_re.match(entity)<EOL>if match and validations.validate_org_name(match.group(self.ORG_NAME_GROUP)):<EOL><INDENT>name = match.group(self.ORG_NAME_GROUP).strip()<EOL>email = match.group(self.ORG_EMAIL_GROUP)<EOL>if (email is not None) and (len(email) != <NUM_LIT:0>):<EOL><INDENT>return creationinfo.Organization(name=name, email=email.strip())<EOL><DEDENT>else:<EOL><INDENT>return creationinfo.Organization(name=name, email=None)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise SPDXValueError('<STR_LIT>')<EOL><DEDENT>
Builds an organization object of of a string representation.
        Returns built organization. Raises SPDXValueError if failed to extract
        name.