code: func (actor Actor) CreateApplicationInSpace(app Application, spaceGUID string) (Application, Warnings, error) {
  	createdApp, warnings, err := actor.CloudControllerClient.CreateApplication(
  		ccv3.Application{
  			LifecycleType:       app.LifecycleType,
  			LifecycleBuildpacks: app.LifecycleBuildpacks,
  			StackName:           app.StackName,
  			Name:                app.Name,
  			Relationships: ccv3.Relationships{
  				constant.RelationshipTypeSpace: ccv3.Relationship{GUID: spaceGUID},
  			},
  		})
  
  	if err != nil {
  		if _, ok := err.(ccerror.NameNotUniqueInSpaceError); ok {
  			return Application{}, Warnings(warnings), actionerror.ApplicationAlreadyExistsError{Name: app.Name}
  		}
  		return Application{}, Warnings(warnings), err
  	}
  
  	return actor.convertCCToActorApplication(createdApp), Warnings(warnings), nil
  }
docs: // CreateApplicationInSpace creates and returns the application with the given
  // name in the given space.