def get(self, **kwargs):
for chain in self.chains:<EOL><INDENT>for key in kwargs:<EOL><INDENT>getter_name = "<STR_LIT>"+key<EOL>if (hasattr(chain, getter_name)):<EOL><INDENT>getter = getattr(chain, getter_name) <EOL>if (getter() == kwargs[key]):<EOL><INDENT>return chain<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return None<EOL>
Find correct filterchain based on generic variables