util/src/main/java/io/github/huherto/springyRecords/DtoRowMapper.java
public static <T> DtoRowMapper<T> newInstance(Class<T> mappedClass) {
        DtoRowMapper<T> newInstance = new DtoRowMapper<T>();
        newInstance.setMappedClass(mappedClass);
        return newInstance;
    }
public static <T> DtoRowMapper<T> newInstance(Class<T> mappedClass) {
        DtoRowMapper<T> newInstance = new DtoRowMapper<T>();
        newInstance.setMappedClass(mappedClass);
        return newInstance;
    }
Static factory method to update a new DtoRowMapper
(with the mapped class specified only once).
@param mappedClass the class that each row should be mapped to