public void execute() {
if (accountName == null && email == null) {
throw new InvalidParameterValueException("Either accountName or email is required");
}
CallContext.current().setEventDetails("Project id: " + projectId + "; accountName " + accountName);
<BUG>Project project = _projectService.addAccountToProject(getProjectId(), getAccountName(), getEmail());

if (project != null) {
ProjectResponse response = _responseGenerator.createProjectResponse(project);
response.setResponseName(getCommandName());</BUG>
this.setResponseObject(response);

public void execute() {
if (accountName == null && email == null) {
throw new InvalidParameterValueException("Either accountName or email is required");
}
CallContext.current().setEventDetails("Project id: " + projectId + "; accountName " + accountName);
boolean result = _projectService.addAccountToProject(getProjectId(), getAccountName(), getEmail());
if (result) {
SuccessResponse response = new SuccessResponse(getCommandName());
this.setResponseObject(response);
