if (!valid) throw new RuntimeException();
}
public void compareSubjectDelegationPermission(Object obj1, Object obj2)
{
SubjectDelegationPermission sdp1 = (SubjectDelegationPermission)obj1;
SubjectDelegationPermission sdp2 = (SubjectDelegationPermission)obj2;
boolean valid = sdp1.equals(sdp2);
valid = valid && (sdp1.getActions().equals(sdp2.getActions()));
valid = valid && (sdp1.getName().equals(sdp2.getName()));
valid = valid && (sdp1.implies(sdp2));
if (!valid) throw new RuntimeException();
}