@Override
	public boolean applyTo(Program program) {
		try {
			program.setImageBase(addr, true);
		}
		catch (IllegalStateException e) {
			msg = e.getMessage();
			return false;
		}
		catch (AddressOverflowException e) {
			msg = "Image base of " + addr.toString() + " not allowed; change causes " +
				e.getMessage();
			return false;
		}
		catch (LockException e) {
			msg = "Must have exclusive checkout to set the image base";
			return false;
		}
		return true;
	}
@see ghidra.framework.cmd.Command#applyTo(ghidra.framework.model.DomainObject)
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/memory/ImageBaseDialog.java