code: public Defect defect(String name, Project project, Map<String, Object> attributes) {
          Defect defect = new Defect(instance);
  
          defect.setName(name);
          defect.setProject(project);
          addAttributes(defect, attributes);
          defect.save();
          return defect;
      }
docs: Create a new Defect with a name.
  
  @param name       The initial name of the entity.
  @param project    The Project this Defect will be in.
  @param attributes additional attributes for the Defect.
  @return A newly minted Defect that exists in the VersionOne system.