protected <T> void resetClient(final Class<T> serviceClass) {
SyncopeSession.get().resetClient(serviceClass);
}
protected String toOrderBy(final SortParam<String> sort) {
OrderByClauseBuilder builder = SyncopeClient.getOrderByClauseBuilder();
String property = sort.getProperty();
if (property.indexOf('#') != -1) {
property = property.substring(property.indexOf('#') + 1);
}
if (sort.isAscending()) {
builder.asc(property);
} else {
builder.desc(property);
}
return builder.build();
}