alm.setLayoutStore(als);
// set the layout to the DOM created from the old simple manager
alm.setUserLayoutDOM(ul);
// persist the new layout to the store
// creates new layout with id 1
alm.saveUserLayout();
// add the new profile
als.addUserProfile(user,ALProfile);
} catch (Exception e) {
System.out.println("Error saving aggregated layout for user_id "+uid);
e.printStackTrace();