<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _java_is_subclass(cls, obj, class_name):
 """Given a deserialized JavaObject as returned by the javaobj library, determine whether it's a subclass of the given class name. """

        clazz = obj.get_class()
        while clazz:
            if clazz.name == class_name:
                return True
            clazz = clazz.superclass
        return False