return executeLDPathQuery(entityhub,query, ((LDPathSelect)query).getLDPathSelect(),
acceptedMediaType, headers);
} else { //use the default query execution
QueryResultList<Representation> result;
try {
result = entityhub.find(query);
} catch (EntityhubException e) {
String message = String.format("Exception while performing the " +
"FieldQuery on the EntityHub (message: %s)", e.getMessage());
log.error(message, e);
return Response.status(Status.INTERNAL_SERVER_ERROR)