code: public BuildRun buildRun(BuildProject buildProject, String name,
                               DateTime date, Map<String, Object> attributes) {
          BuildRun buildRun = new BuildRun(instance);
  
          buildRun.setName(name);
          buildRun.setBuildProject(buildProject);
          buildRun.setDate(date);
          addAttributes(buildRun, attributes);
          buildRun.save();
          return buildRun;
      }
docs: Create a new Build Run in the given Build Project with a name and date.
  
  @param buildProject The Build Project this Build Run belongs to.
  @param name         Name of the build project.
  @param date         The Date this Build Run ran.
  @param attributes   additional attributes for the BuildRun.
  @return A newly minted Build Run that exists in the VersionOne system.