EntityManager em = EMRepository.INSTANCE.getEM(sessionToken);
Map<String, Client<Query>> clients = (Map<String, Client<Query>>) em.getDelegate();
Client client = clients.get(persistenceUnit);
result = client.executeScript(script);
} catch (Exception e) {
log.error(e.getMessage());
return Response.serverError().build();
}