get reference to content, added custom aspect, then error when tried to retrieve aspects,
var hmiFile = space.childByNamePath(nameOfFile);
// attach metadata to content
hmiFile.addAspect("atd:hyperwaveMeta",props);
var fileAspects = hmiFile.aspects; //error
error message:
java.lang.IllegalArgumentException(workspace://SpacesStore/bd07eb03-d448-48ba-ad13-ce9b56fd3db7#184)
in debugger aspects not defined for hmiFile. What am I doing wrong?