fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/sqlutil/wrapper/SQLUtilWebSocketRESTWrapper.java
private List<Field> getFieldValuesForFormFromCache(
			Long formIdParam,
			List<FormFieldListing> listingReturnFieldValsPopulatedParam,
			Form[] formsToFetchForLocalCacheArrParam){

		if(formIdParam == null || formIdParam.longValue() < 1) {
			return null;
		}

		if(listingReturnFieldValsPopulatedParam == null ||
				listingReturnFieldValsPopulatedParam.isEmpty()) {
			return null;
		}

		if(formsToFetchForLocalCacheArrParam == null ||
				formsToFetchForLocalCacheArrParam.length == 0) {
			return null;
		}

		for(Form formIter : formsToFetchForLocalCacheArrParam) {
			//Form is a match...
			if(formIdParam.equals(formIter.getId())) {
				String echoToUse = formIter.getEcho();
				for(FormFieldListing fieldListing : listingReturnFieldValsPopulatedParam) {
					if(echoToUse.equals(fieldListing.getEcho())) {
						return fieldListing.getListing();
					}
				}
			}
		}

		return null;
	}
private List<Field> getFieldValuesForFormFromCache(
			Long formIdParam,
			List<FormFieldListing> listingReturnFieldValsPopulatedParam,
			Form[] formsToFetchForLocalCacheArrParam){

		if(formIdParam == null || formIdParam.longValue() < 1) {
			return null;
		}

		if(listingReturnFieldValsPopulatedParam == null ||
				listingReturnFieldValsPopulatedParam.isEmpty()) {
			return null;
		}

		if(formsToFetchForLocalCacheArrParam == null ||
				formsToFetchForLocalCacheArrParam.length == 0) {
			return null;
		}

		for(Form formIter : formsToFetchForLocalCacheArrParam) {
			//Form is a match...
			if(formIdParam.equals(formIter.getId())) {
				String echoToUse = formIter.getEcho();
				for(FormFieldListing fieldListing : listingReturnFieldValsPopulatedParam) {
					if(echoToUse.equals(fieldListing.getEcho())) {
						return fieldListing.getListing();
					}
				}
			}
		}

		return null;
	}
private List < Field > getFieldValuesForFormFromCache ( Long formIdParam , List < FormFieldListing > listingReturnFieldValsPopulatedParam , Form [ ] formsToFetchForLocalCacheArrParam ) { if ( formIdParam == null || formIdParam . longValue ( ) < 1 ) { return null ; } if ( listingReturnFieldValsPopulatedParam == null || listingReturnFieldValsPopulatedParam . isEmpty ( ) ) { return null ; } if ( formsToFetchForLocalCacheArrParam == null || formsToFetchForLocalCacheArrParam . length == 0 ) { return null ; } for ( Form formIter : formsToFetchForLocalCacheArrParam ) { //Form is a match... if ( formIdParam . equals ( formIter . getId ( ) ) ) { String echoToUse = formIter . getEcho ( ) ; for ( FormFieldListing fieldListing : listingReturnFieldValsPopulatedParam ) { if ( echoToUse . equals ( fieldListing . getEcho ( ) ) ) { return fieldListing . getListing ( ) ; } } } } return null ; }
Populate the field values from the cache.

@param formIdParam The id of the form to populate.
@param listingReturnFieldValsPopulatedParam The cache of field values.
@param formsToFetchForLocalCacheArrParam The forms that contain the ids and echos.

@return The field values for form with id {@code formIdParam}.
Populate the field values from the cache .