use of CollectionDatasource of XML file in file without calling the SQL

I am wondering how i can use the collection data source in the Edit class that I already have initiated in screen xml.
for example, in xml i have the following data source:

        <collectionDatasource id="articleSizeDs"
                <![CDATA[select e from inteaccgms$ArticleSize e
where = : ds$]]>

How can I use the same datasource “articleSizeDs” in respective file without calling the same SQL?

I am trying this way:

    protected CollectionDatasource<ArticleSize, UUID> articleSizeDs;?
    protected Table<SalesOrderSizeColour> salesOrderSizeColourTable;
    private ComponentsFactory componentsFactory;

    public void init(Map<String, Object> params) {

  for(ArticleSize size: articleSizeDs.getItems()) {
            salesOrderSizeColourTable.addGeneratedColumn("articleSize", entity -> {
                Label label = componentsFactory.createComponent(Label.class);
                return label;

            linesTable.setColumnCaption(size.getName(), size.getName());



getting the following error:

projects/myproject/modules/gui/src/com/company/gms/gui/salesorder/ error: illegal character: '\u2028'
    protected CollectionDatasource articleSizeDs;2028
/Users/Mortoza/studio-projects/myproject/modules/gui/src/com/company/gms/gui/salesorder/ error:  expected
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app-gui:compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:

Not sure what is wrong with the @Inject

Compiler error says that there is an illegal character at line 35 of Fix it.
And perhaps you don’t need to create generated columns in cycle.