public static DataError findErrorForDoc ( List < DataError > list , JsonNode node ) { for ( DataError x : list ) { if ( x . entityData == node ) { return x ; } } return null ; }
Returns the data error for the given json doc in the list