def build_component(self, name=None, derived_attributes=False):
mm = self.build_metamodel()<EOL>c_c = mm.select_any('<STR_LIT>', where(Name=name))<EOL>if c_c:<EOL><INDENT>return mk_component(mm, c_c, derived_attributes)<EOL><DEDENT>elif name:<EOL><INDENT>raise OoaOfOoaException('<STR_LIT>' % name)<EOL><DEDENT>else:<EOL><INDENT>return mk_component(mm, c_c, derived_attributes)<EOL><DEDENT>
Instantiate and build a component from ooaofooa named *name* as a
pyxtuml model. Classes, associations, attributes and unique identifers,
i.e. O_OBJ, R_REL, O_ATTR in ooaofooa, are defined in the resulting
pyxtuml model.

Optionally, control whether *derived attributes* shall be mapped into
the resulting pyxtuml model as attributes or not.

Futhermore, if no *name* is provided, the entire content of the ooaofooa
model is instantiated into the pyxtuml model.