result = getContinuum().addMavenTwoProject( pomUrl, selectedProjectGroup, checkProtocol, scmUseCache,
!nonRecursiveProject, this.getBuildDefinitionTemplateId(),
checkoutInSingleDirectory );
}
AuditLog event = new AuditLog( hidePasswordInUrl( pomUrl ), AuditLogConstants.ADD_M2_PROJECT );
event.setCategory( AuditLogConstants.PROJECT );
event.setCurrentUser( getPrincipal() );
if ( result == null || result.hasErrors() )
{
event.setAction( AuditLogConstants.ADD_M2_PROJECT_FAILED );
}
event.log();
return result;
}