public EList<NamedElement> getAllocatedFrom() {
// AllocatedFrom property lists all the named elements linked to current
// by an Allocate link.
// Current element is the target of the Allocate link.
EList<NamedElement> allocatedFrom = new BasicEList<NamedElement>();
Allocate currentAllocate = null;
if(getBase_NamedElement() != null) {
// Find Allocate link
Iterator<DirectedRelationship> itDep = getBase_NamedElement().getTargetDirectedRelationships().iterator();
while(itDep.hasNext()) {
DirectedRelationship currentDRelationship = itDep.next();
currentAllocate = UMLUtil.getStereotypeApplication(currentDRelationship, Allocate.class);
if(currentAllocate != null) {
EList<Element> targets = currentAllocate.getBase_Abstraction().getSources();
Iterator<Element> it = targets.iterator();
while(it.hasNext()) {
Element currentElt = it.next();
if(currentElt instanceof NamedElement) {
allocatedFrom.add((NamedElement)currentElt);