TimestampIntervalCollection activeIntervalCollection; try { activeIntervalCollection = bugInstance.getActiveIntervalCollection(); } catch (InvalidTimestampIntervalException e) { activeIntervalCollection = new TimestampIntervalCollection(); }
TimestampIntervalCollection activeIntervalCollection = bugInstance.getActiveIntervalCollection();
	public boolean add(BugInstance bugInstance) {		registerUniqueId(bugInstance);		// Mark the BugInstance as being active at the BugCollection's current timestamp.		TimestampIntervalCollection activeIntervalCollection;		try {			activeIntervalCollection = bugInstance.getActiveIntervalCollection();		} catch (InvalidTimestampIntervalException e) {			activeIntervalCollection = new TimestampIntervalCollection();		}		activeIntervalCollection.add(new TimestampInterval(timestamp, timestamp));		bugInstance.setActiveIntervalCollection(activeIntervalCollection);				return bugSet.add(bugInstance);	}