def rule(event):
    if all(
        [
            any(
                [
                    "\\j2ee\\cluster\\apps\\sap.com\\irj\\servlet_jsp\\irj\\work"
                    in event.deep_get("TargetFilename", default=""),
                    "\\j2ee\\cluster\\apps\\sap.com\\irj\\servlet_jsp\\irj\\root"
                    in event.deep_get("TargetFilename", default=""),
                ]
            ),
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(".jsp"),
                    event.deep_get("TargetFilename", default="").endswith(".java"),
                    event.deep_get("TargetFilename", default="").endswith(".class"),
                ]
            ),
        ]
    ):
        return True
    return False
