Obtaining Element reference of Droppable control

I created a square grid of Droppables with Nifty and wish to procedurally place certain Draggables on these “sectors”. The problem is that I can’t get a reference to the Elements of the “sectors” I created to act as parents for the Draggables I wish to procedurally move about the sectors. I generated the sectors with the following code within nested for loops.



control(new DroppableBuilder(“sector”+sectorNumber){{



backgroundColor("#ccffcc");

width(“30px”);

height(“30px”);



}});



When I use:



Droppable sectorToAdd = nifty.getScreen(“squareGrid”).findNiftyControl(“sector”+sectorNumber,Droppable.class);

sectorToAdd.getElement(); // this yields null