@SuppressWarnings("unchecked")
    public static final List<Map<String, Object>> getDocuments(Map<String, Object> result) {
        if (MapUtils.isNotEmpty(result) && result.containsKey(RESPONSE_KEY)) {
            Map<String, Object> response = (Map<String, Object>)result.get(RESPONSE_KEY);
            if (MapUtils.isNotEmpty(response) && response.containsKey(DOCUMENTS_KEY)) {
                return  (List<Map<String, Object>>)response.get(DOCUMENTS_KEY);
            }
        }

        return null;
    }
@ SuppressWarnings ( "unchecked" ) public static final List < Map < String , Object > > getDocuments ( Map < String , Object > result ) { if ( MapUtils . isNotEmpty ( result ) && result . containsKey ( RESPONSE_KEY ) ) { Map < String , Object > response = ( Map < String , Object > ) result . get ( RESPONSE_KEY ) ; if ( MapUtils . isNotEmpty ( response ) && response . containsKey ( DOCUMENTS_KEY ) ) { return ( List < Map < String , Object > > ) response . get ( DOCUMENTS_KEY ) ; } } return null ; }
Extract the documents from the specified result.

@param result the result containing the documents

@return the documents