private static final String SEARCH_STRING = "INSERT_SEARCH_CRITERIA_HERE";
public static void runExample(
DfaServices dfaServices, DfaSession session, String searchString) throws Exception {
// Request the service.
SiteRemote service = dfaServices.get(session, SiteRemote.class);
// Create DFA site search criteria structure.
DfaSiteSearchCriteria searchCriteria = new DfaSiteSearchCriteria();
searchCriteria.setPageSize(10);
searchCriteria.setSearchString(searchString);
// Get the sites.
DfaSiteRecordSet dfaSiteRecordSet = service.getDfaSites(searchCriteria);
// Display DFA site names and IDs.
if (dfaSiteRecordSet.getRecords() != null) {
for (DfaSite result : dfaSiteRecordSet.getRecords()) {
System.out.println("DFA site with name \"" + result.getName()