@ SuppressWarnings ( "rawtypes" ) protected String [ ] parseSequenceParameter ( Map params , String paramName ) throws TemplateModelException { Object paramModel = params . get ( paramName ) ; if ( paramModel == null ) { return null ; } if ( ! ( paramModel instanceof SimpleSequence ) ) { throw new IllegalArgumentException ( paramName + " must be sequence" ) ; } List < String > list = transformSimpleSequenceAsStringList ( ( SimpleSequence ) paramModel , paramName ) ; return list . toArray ( new String [ 0 ] ) ; }
Parse sequence parameter .