return record;
}
@Override
protected AgentCriteria getFetchCriteria(DSRequest request) {
AgentCriteria criteria = new AgentCriteria();
// printRequestCriteria(request);
criteria.addFilterId(getFilter(request, FIELD_ID.propertyName(), Integer.class));
criteria.addFilterName(getFilter(request, FIELD_NAME.propertyName(), String.class));
criteria.addFilterAddress(getFilter(request, FILTER_ADDRESS, String.class));
criteria.addFilterPort(getFilter(request, FILTER_PORT, Integer.class));
criteria.addFilterAgenttoken(getFilter(request, FILTER_AGENTTOKEN, String.class));
criteria.addFilterServerId(getFilter(request, FILTER_SERVER_ID, Integer.class));
criteria.addFilterAffinityGroupId(getFilter(request, FILTER_AFFINITY_GROUP_ID, Integer.class));
//@todo: Remove me when finished debugging search expression
Log.debug(" *** AgentCriteria Search String: " + getFilter(request, "search", String.class));
criteria.setSearchExpression(getFilter(request, "search", String.class));
return criteria;
}