String sortedBy = null, order = null;
if ( sortedByParameter != NullValue.NULL ) sortedBy = sortedByParameter.toString();
if ( orderParameter != NullValue.NULL ) order = orderParameter.toString();
String id = parameter.get(TableHandler.ID).toString();
Store store = context.getStore(StoreHelper.getStoreByName(parameter.get(TableHandler.STORE).toString()));
MapValue idResource = (MapValue)store.get(id);
Map tableMap;
if ( idResource == null) {
tableMap = new HashMap();
MapValue tableState = new MapValue(tableMap);
store.put(id, tableState);
} else {
tableMap = idResource.getMap();
NumberValue offset = (NumberValue)idResource.getMap().get(TableHandler.CURRENT_POSITION);
if ( offset != null ) offsetResource = offset;