@classmethod
def list_by_names(cls, context, names):
    """Return a list of DeployTemplate objects matching a set of names.

        :param context: security context. NOTE: This should only
                        be used internally by the indirection_api.
                        Unfortunately, RPC requires context as the first
                        argument, even though we don't use it.
                        A context should be set when instantiating the
                        object, e.g.: DeployTemplate(context).
        :param names: a list of names to filter by.
        :returns: a list of :class:`DeployTemplate` objects.
        """
    db_templates = cls.dbapi.get_deploy_template_list_by_names(names)
    return cls._from_db_object_list(context, db_templates)
