if (!rq.containsPresentationContextFor(cuid)) {
if (relExtNeg)
rq.addCommonExtendedNegotiation(relSOPClasses
.getCommonExtendedNegotiation(cuid));
if (!ts.equals(UID.ExplicitVRLittleEndian))
rq.addPresentationContext(new PresentationContext(rq
.getNumberOfPresentationContexts() * 2 + 1, cuid,
UID.ExplicitVRLittleEndian));
if (!ts.equals(UID.ImplicitVRLittleEndian))
rq.addPresentationContext(new PresentationContext(rq
.getNumberOfPresentationContexts() * 2 + 1, cuid,
UID.ImplicitVRLittleEndian));
}
rq.addPresentationContext(new PresentationContext(rq
.getNumberOfPresentationContexts() * 2 + 1, cuid, ts));
return true;
}