protected List<String> prepareExtraArgs(Stack<String> pElements) {
        if (pElements == null || pElements.size() == 0) {
            return null;
        }
        List<String> ret = new ArrayList<String>();
        while (!pElements.isEmpty()) {
            String element = pElements.pop();
            ret.add("*".equals(element) ? null : element);
        }
        return ret;
    }
protected List < String > prepareExtraArgs ( Stack < String > pElements ) { if ( pElements == null || pElements . size ( ) == 0 ) { return null ; } List < String > ret = new ArrayList < String > ( ) ; while ( ! pElements . isEmpty ( ) ) { String element = pElements . pop ( ) ; ret . add ( "*" . equals ( element ) ? null : element ) ; } return ret ; }
Extract extra arguments from the remaining element on the stack.

@param pElements stack from where to extract extra elements
@return the remaining elements as list (but never null).