IPerson user = PersonFactory.createPerson();
user.setID(uid);
try {
// read in the simple layout
uls = new RDBMUserLayoutStore();
simpleProfile = uls.getUserProfileById(user,simpleProfileId);
Document ul = uls.getUserLayout(user,simpleProfile);
// wow - that was easy. Now need to get rid of initial letters in IDs.
stripNodes(ul.getChildNodes().item(0));