code: public Defect generateDefect(Map<String, Object> attributes) {
          Defect result = getInstance().createNew(Defect.class, this);
          getInstance().create().addAttributes(result, attributes);
          result.save();
          return result;
      }
docs: Creates a Defect from this Request.
  @param attributes additional attributes for the Defect.
  @return A Defect in the VersionOne system related to this Issue.