ArrayList<String> al = new ArrayList<String> ();
while (parent != null)
{
al.add (parent.the_name ());
parent = (POA) parent.the_parent ();
}
int size = al.size ();
adapter_name = new String [size];
// We can't just do toArray as otherwise adapter_name would be in