private String determineResultClassName ( ClassObjectType objType ) { String className = objType . getClassName ( ) ; if ( List . class . getName ( ) . equals ( className ) ) { className = ArrayList . class . getName ( ) ; } else if ( Set . class . getName ( ) . equals ( className ) ) { className = HashSet . class . getName ( ) ; } else if ( Collection . class . getName ( ) . equals ( className ) ) { className = ArrayList . class . getName ( ) ; } return className ; }
If the user uses an interface as a result type use a default concrete class .