public Object convert(Class destClass, Object srcObj) {
        String result = (String)stringConverter.convert(destClass, srcObj);
        try {
            Constructor constructor = destClass.getConstructor(String.class); // TODO Check, but not catch
            return constructor.newInstance(result);
        } catch (NoSuchMethodException e) {
            // just return the string
            return result;
        } catch (Exception e) {
            throw new ConversionException(e);
        }
    }
Internal class for converting String to Complex Data Types with a String constructor. Only intended for internal
use.
core/src/main/java/com/github/dozermapper/core/converters/StringConstructorConverter.java