public static DaoException translate(DataAccessException dae) {
        if (dae instanceof DuplicateKeyException) {
            return new DuplicatedValueException(dae);
        }
        return new DaoException(dae);
    }
public static DaoException translate ( DataAccessException dae ) { if ( dae instanceof DuplicateKeyException ) { return new DuplicatedValueException ( dae ) ; } return new DaoException ( dae ) ; }
Translate to {@link DaoException}.

@param dae
@return