if (isEmpty(encodedIcon)) {
model.addAttribute("errorMessage", "Name, your thoughts and a picture are required.");
return show("write");
}
Person owner = new Person();
owner.setName(name);
dataService.createPerson(owner);
Thought thought = new Thought();
thought.setCreatedOn(Calendar.getInstance().getTime());
thought.setThought(new Text(userThought));