protected Program getProgram(ActionContext context) {
		if (context instanceof ProgramActionContext) {
			Program program = ((ProgramActionContext) context).getProgram();
			if (plugin.isManaged(program)) {
				return program;
			}
			// otherwise, just return the global current program.
		}
		return plugin.getCurrentProgram();
	}
Gets the program for the given context. The actions that derive from this class only
work on programs that are globally managed by Ghidra. So if the program from the context
is not managed by Ghidra, then just use the current program that is managed.
@param context the action context from which to get the program
@return the appropriate program to use for this action.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/progmgr/AbstractProgramNameSwitchingAction.java