Create ResourceExchange and Associations in plugin from Excel

I am trying to finish this code and am stuck with creating the ProducingFunction, ConsumingFunction, Conveyed for a Resource Exchange and how to link the two.

 

This is my code:

import com.nomagic.uaf;

UAF uaf = UAF.getInstanceByProject(project);

List lstConsumingElement = new ArrayList();

lstConsumingElement.add(eleConsumingFcn);

for (Element consumingElement : lstConsumingElement){

     Abstraction abstraction = project.getElementsFactory().createAbstractionInstance();

     abstraction.setOwner(eleSource.getOwner());

     uaf.isCapableToPerform().apply(abstraction);

     Elements.setClientElement(abstraction, eleSource);

     Elements.setSupplierElement(eleSource, consumingElement);

}

if (eleConformsTo != null) {

     List lstConformsTo = new ArrayList();

     lstConformsTo.add(eleConformsTo);

     uaf.IsCapableToPerformStereotype.addComformsTo(newEle, lstConformsTo);

     //Setting ConformsTo

     uaf.uafElement().setConformsTo(newEle, lstConformsTo);

 }

 

But it errors out saying it cannot find symbol "class uaf", cannot find symbol "classUAF", and cannot find symbol "variable UAF".  

I am writing this for Magic Systems of Systems Architect  ver 2021x2.