same code as (entity.getString("dataType") == null block.