if (createAccountInvitation(project, account.getId()) != null) {
<BUG>return project;
</BUG>
} else {
s_logger.warn("Failed to generate invitation for account " + account.getAccountName() + " to project id=" + project);
<BUG>return null;
}</BUG>
}
if (email != null) {
String token = generateToken(10);

if (createAccountInvitation(project, account.getId()) != null) {
return true;
} else {
s_logger.warn("Failed to generate invitation for account " + account.getAccountName() + " to project id=" + project);
return false;
}
}
if (email != null) {
String token = generateToken(10);
