public Response getEntityById(String entityName, Long id, Set<String> associationsToFetch) {
Object entity = crysonRepository.findById(qualifiedEntityClassName(entityName), id, associationsToFetch);
if (entity != null) {
return Response.ok(crysonSerializer.serialize(entity, associationsToFetch)).build();
} else {
throw new CrysonEntityNotFoundException("Not found", null);
}
}