{
int count = query().count();
if (count == 0)
{
logger.info("No settings found.");
Settings newSettings = defaultSettings.get();
com.google.appengine.api.users.User currentUser = UserServiceFactory.getUserService().getCurrentUser();
User user = new User(currentUser.getUserId(), currentUser.getNickname(), currentUser.getEmail());
newSettings.setUser(user);
save(newSettings);
logger.info("New settings created and saved: " + newSettings);
return newSettings;
}
else