return (String[]) alProblems.toArray( QueryHelper.CAST_STRING_ARRAY );
return (String[]) alProblems.toArray( new String[alProblems.size( )] );
	public final String[] validate( Chart cm, Object oContext )	{		final ArrayList alProblems = new ArrayList( 4 );		// CHECK FOR UNBOUND DATASET		final ExtendedItemHandle eih = (ExtendedItemHandle) oContext;		if ( DEUtil.getDataSetList( eih ).size( ) == 0 )		{			alProblems.add( Messages.getString( "ChartReportItemBuilderImpl.problem.hasNotBeenFound" ) ); //$NON-NLS-1$		}		// CHECK FOR UNDEFINED SERIES QUERIES (DO NOT NEED THE RUNTIME CONTEXT)		final QueryHelper.SeriesQueries[] qsqa = new QueryHelper( ).getSeriesQueryDefinitions( cm );		Collection co;		for ( int i = 0; i < qsqa.length; i++ )		{			co = qsqa[i].validate( );			if ( co != null )			{				alProblems.addAll( co );			}		}		return (String[]) alProblems.toArray( QueryHelper.CAST_STRING_ARRAY );	}