Collections.singletonList(artistName), /*subjects*/EL, /*pubs*/EL, /*contrib*/EL, /*dates*/EL, /*types*/EL,
/*sources*/EL, /*langs*/EL, /*relations*/EL, /*covs*/EL, /*rights*/EL,
Collections.singletonList("Tutorial.Music"), "granule", "system.productServer",
Collections.singletonList("urn:eda:rmi:MyProductServer"));
p.setResourceAttributes(ra);
EnumeratedProfileElement artistElem =
new EnumeratedProfileElement(p, "artist", "artist", "Name of the artist of a work", "string", "name",
/*syns*/EL, /*ob*/true, /*maxOccur*/1, /*comment*/null, Collections.singletonList(artistName));
p.getProfileElements().put("artist",
artistElem);
EnumeratedProfileElement albumElem = new EnumeratedProfileElement(p, "album", "album",
"Name of album where track occurs", "string", "name", /*syns*/EL, /*ob*/true, /*maxOccur*/1, /*comment*/null,
Collections.singletonList(albumName));
p.getProfileElements().put("album", albumElem);
return p;
}