public List getList ( String name ) { Object paramValues = get ( name ) ; if ( paramValues == null ) { return Collections . emptyList ( ) ; } if ( paramValues . getClass ( ) . isArray ( ) ) { return Arrays . asList ( ( Object [ ] ) paramValues ) ; } if ( paramValues instanceof Collection ) { return new ArrayList ( ( Collection ) paramValues ) ; } return Collections . singletonList ( paramValues ) ; }
Helper method for obtaining a list of values from parameter