return null;
}
int numberOfSessions = sessions.size();
if (requireUnitOfWork && 1 == numberOfSessions) {
AbstractSession session = (AbstractSession) sessions.get(0);
return session.acquireUnitOfWork();
} else {
for (int x = 0; x < numberOfSessions; x++) {
AbstractSession next = ((AbstractSession) sessions.get(x));
if (next.getProject().getOrderedDescriptors().contains(xmlDescriptor)) {
return next;