* @throws Exception
*/
@AuraEnabled
public static DefDescriptor<?> addSource(@Key("name") String name, @Key("content") String content, @Key("defType") String defType) throws Exception {
StringSourceLoader stringSourceLoader = StringSourceLoader.getInstance();
return stringSourceLoader.addSource(Enum.valueOf(DefType.class, defType).getPrimaryInterface(), content, name, true).getDescriptor();
}
/**
* Removes a specified resource from string source
* @param name name of resource in string source
* @param defType COMPONENT / APPLICATION / EVENT etc