long time = new Long(timeString).longValue();
if (type.equals(ELEMENT_CHECKIN)) {
String versionString = getChildValue(helper, element, ELEMENT_VERSION);
int version = new Integer(versionString).intValue();
boolean backup = helper.getChildren(element, ELEMENT_BACKUP).length > 0;
return new CheckInEntry(sessionId, identity, time, version, backup);
} else if (type.equals(ELEMENT_CHECKOUT)) {
return new CheckOutEntry(sessionId, identity, time);
} else {
throw new RuntimeException("Unsupported RCML entry type: [" + type + "]");
}