CategoryDirective directive = type.getCategoryDirective();
directives[i] = type.getCategoryDirective();
    public CategoriesDirective getCategoriesDirective()    {         CategoryDataType[] types = (CategoryDataType[]) m_list.toArray( new CategoryDataType[0] );         CategoryDirective[] directives = new CategoryDirective[ types.length ];         for( int i=0; i<types.length; i++ )         {             CategoryDataType type = types[i];             CategoryDirective directive = type.getCategoryDirective();         }         return new CategoriesDirective( directives );    }