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