This should take an organization as the parameter. Please see ApplicationRepository.Create()