}
public TimeRange getDataRetentionPeriod() throws BAMException {
TimeRange retention;
BAMGlobalConfigAdmin configAdmin = new BAMGlobalConfigAdmin(getRegistry());
try {
retention = configAdmin.getDataRetentionPeriod();
} catch (BAMException e) {
throw new BAMException("Error occurred getting data retention period", e);
}
// If the data retention period is not specified or incorrect, use