//Verify integrity
boolean integrityReturned = false;
InvocationConstraints returned = serverEndpoint
.checkConstraints(
new InvocationConstraints(Integrity.YES,null));
Iterator it = returned.requirements().iterator();
while (it.hasNext()) {
InvocationConstraint ic = (InvocationConstraint) it.next();
if (ic.equals(Integrity.YES)) {
integrityReturned = true;
break;