private static void resolveRichDocument ( CDAEntry entry , CDAField field ) { final Map < String , Object > rawValue = ( Map < String , Object > ) entry . rawFields ( ) . get ( field . id ( ) ) ; if ( rawValue == null ) { return ; } for ( final String locale : rawValue . keySet ( ) ) { final Object raw = rawValue . get ( locale ) ; if ( raw == null || raw instanceof CDARichNode ) { // ignore null and already parsed values continue ; } final Map < String , Object > map = ( Map < String , Object > ) rawValue . get ( locale ) ; entry . setField ( locale , field . id ( ) , RESOLVER_MAP . get ( "document" ) . resolve ( map ) ) ; } }
Resolve all children of the top most document block .