else if (type.equals(XUser.TYPE)) {
User user = getNative(sessionId, (XUser) xObj);
IViewManagement viewManagement = MapperRegistry.getInstance().getViewManagement();
try {
try {
IFolderManagement folders = MapperRegistry.getInstance().
getFolderManagement();
AuthUser aUser = ServiceProvider.getAuthenticationService().authenticateHash(user.getLoginName(),
user.getPassword());
List <ExplorerTreeNode> nodes = folders.reallyGetFolders(aUser);
for (ExplorerTreeNode nd: nodes) {
folders.delete(nd);
}
} catch (SQLException e) {
e.printStackTrace();
} catch (AuthenticationFailedException e) {
e.printStackTrace();