* @return CheckOutEntry The entry of the check out
*
* @throws Exception if an error occurs
*/
public CheckOutEntry getLatestCheckOutEntry() throws Exception {
XPointerFactory xpf = new XPointerFactory();
Vector firstCheckOut = xpf.select(document.getDocumentElement(),
"xpointer(/XPSRevisionControl/CheckOut[1]/Identity)xpointer(/XPSRevisionControl/CheckOut[1]/Time)");
if (firstCheckOut.size() == 0) {
// No checkout at all
//
return null;
}
String[] fcoValues = xpf.getNodeValues(firstCheckOut);
long fcoTime = new Long(fcoValues[1]).longValue();
return new CheckOutEntry(fcoValues[0], fcoTime);
}