+// if (user instanceof Group) {
+// String cn = context.getName().getLocalPart();
+// Text cnT = SuiteUiUtils.addFormLine(main, "uid", getUserProperty(user, LdapAttrs.uid.name()));
+// cnT.setText(cn);
+//
+// } else {
+// String uid = context.getName().getLocalPart();
+//
+//// Text givenName = new Text(main, SWT.SINGLE);
+//// givenName.setText(getUserProperty(user, LdapAttrs.givenName.name()));
+// Text givenName = SuiteUiUtils.addFormInput(main, SuiteMsg.firstName.lead(),
+// getUserProperty(user, LdapAttrs.givenName.name()));
+//
+// Text sn = SuiteUiUtils.addFormInput(main, SuiteMsg.lastName.lead(),
+// getUserProperty(user, LdapAttrs.sn.name()));
+// // sn.setText(getUserProperty(user, LdapAttrs.sn.name()));
+//
+// Text email = SuiteUiUtils.addFormInput(main, SuiteMsg.email.lead(),
+// getUserProperty(user, LdapAttrs.mail.name()));
+// // email.setText(getUserProperty(user, LdapAttrs.mail.name()));
+//
+// Text uidT = SuiteUiUtils.addFormLine(main, "uid", getUserProperty(user, LdapAttrs.uid.name()));
+// uidT.setText(uid);
+//
+//// Label dnL = new Label(main, SWT.NONE);
+//// dnL.setText(user.getName());
+//
+// // roles
+// // Section rolesSection = new Section(main, SWT.NONE, context);
+// Composite rolesSection = new Composite(main, SWT.NONE);
+// // rolesSection.setText("Roles");
+// rolesSection.setLayoutData(CmsSwtUtils.fillWidth());
+// rolesSection.setLayout(new GridLayout());
+// // new Label(rolesSection, SWT.NONE).setText("Roles:");
+// List<String> roles = Arrays.asList(cmsUserManager.getUserRoles(user.getName()));
+// for (String role : availableRoles) {
+// // new Label(rolesSection, SWT.NONE).setText(role);
+// Button radio = new Button(rolesSection, SWT.CHECK);
+// radio.setText(role);
+// if (roles.contains(role))
+// radio.setSelection(true);
+// }
+// }
+