def METHOD_NAME(PolicySet, javaclass):
    DefinedPolicies = PolicySet.findall("./value/def")
    list_of_policy_classes = []
    for classes in DefinedPolicies:
        list_of_policy_classes.append(classes.get('classId'))
    # check if my classId is already there
    if javaclass in list_of_policy_classes:
        return True
    else:
        return False