Replace Profile[] returned from Profile.getParents() with List<Profile>