<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def language(self, target):
 """Returns the target language to generate thrift stubs for. :param target: The target to extract the target language from. :type target: :class:`pants.backend.codegen.thrift.java.java_thrift_library.JavaThriftLibrary` :returns: The target language to generate stubs for. :rtype: string """

    self._check_target(target)
    return target.language or self._default_language