void checkDomainObject(DomainObjectAdapterDB object) {
		boolean found = false;
		for (DomainObjectAdapterDB obj : getDomainObjects()) {
			if (obj == object) {
				found = true;
				break;
			}
		}
		if (!found) {
			throw new IllegalArgumentException("invalid domain object");
		}
	}
Throw lock exception if currently locked
@throws DomainObjectLockedException if currently locked
Ghidra/Framework/Project/src/main/java/ghidra/framework/data/AbstractTransactionManager.java