public T readNewInstance() throws IOException {
		structureInstance = mappingInfo.getInstanceCreator().get(this);

		mappingInfo.assignContextFieldValues(this);

		mappingInfo.readStructure(this);

		ReflectionHelper.invokeMethods(mappingInfo.getAfterMethods(), structureInstance);

		// TODO: capture actual structure length by checking BinaryReader position?

		return structureInstance;
	}
Creates a new instance of the structure by deserializing the structure's marked
fields into java fields.
  
@return new instance of structure
@throws IOException if error reading
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/structmapping/StructureContext.java