public FunctionRecord createNewFunction(LibraryRecord library, FidHashQuad hashQuad,
			String name, long entryPoint, String domainPath, boolean hasTerminator) {

		try {
			checkUpdateAllowed();
			FunctionRecord functionRecord = functionsTable.createFunctionRecord(
				library.getLibraryID(), hashQuad, name, entryPoint, domainPath, hasTerminator);
			return functionRecord;
		}
		catch (ReadOnlyException e) {
			Msg.error(this, e);
		}
		catch (IOException e) {
			Msg.error(this, "Serious problem creating FID Function record", e);
		}
		return null;
	}
Creates a new function record in a specific library in this FID database.
@param library the library in which to create the function
@param hashQuad the hash quad
@param name the name of the function
@param entryPoint the entry point of the function in the library
@param domainPath the domain path of the domain object containing the function
@param hasTerminator whether a terminating flow was found in the function body
@return the newly created function record
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FidDB.java