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.