def is_enabled(self, cls):
if cls not in self.enabled:<EOL><INDENT>self.enabled[cls] = self.is_component_enabled(cls)<EOL><DEDENT>return self.enabled[cls]<EOL>
Return whether the given component class is enabled.