@Override
	public boolean applyTo(Program program) {

		if (name.length() <= 0) {
			name = null;
		}

		Function f = program.getListing().getFunctionAt(entry);
		if (f == null) {
			return true;
		}
		try {
			f.setName(name, source);
		}
		catch (Exception e) {
			msg = e.getMessage();
			return false;
		}
		return true;

	}
Constructs a new command for setting the name of a function.
@param entry the address of the function to be renamed.
@param newName the new name for the function.
@param source the source of this function name
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/function/SetFunctionNameCmd.java