public @ResponseBody List<SerializablePerson> getAllPersonsOfProject(@PathVariable int projectid) {
Set<Person> persons = this.personService.getAllPersonsByProjectId(projectid);
List<SerializablePerson> serializedPersons = new ArrayList<SerializablePerson>();
for (Iterator<Person> iterator = persons.iterator(); iterator.hasNext();) {
Person p = iterator.next();
SerializablePerson sp = new SerializablePerson(p.getId(), p.getFirstName(), p.getLastName());
serializedPersons.add(sp);
}
return serializedPersons;
}