@Override
	public boolean applyTo(Program program) {
		Listing listing = program.getListing();
		try {
			listing.createRootModule(treeName);
			renameFragments(program, treeName);
			return true;
		}
		catch (DuplicateNameException e) {
			statusMsg = e.getMessage();
		}
		return false;
	}
Constructor for CreateDefaultTreeCmd. 
@param treeName name of the tree to create
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/module/CreateDefaultTreeCmd.java