How to Create/Obtain a Procedure by Code

Unofficial Content
// Creating..
Artech.Genexus.Common.Objects.Procedure proc = new Artech.Genexus.Common.Objects.Procedure(DataGridCreatorPart.Model);
proc.Name = "Test3";
proc.Save();

// Updating...
Procedure proc = Procedure.Get(DataGridCreatorPart.Model, "Test4");
if (proc != null)
{
  proc.ProcedurePart.Source = "//Hello World";
  proc.Save();
}