try {
SearchResponse response = idStore.search(sp);
if (response.hasNext()) {
User user = (User)response.next();
if (user != null) {
UserProfile userProfile = user.getUserProfile();
this.searchUserResult = userProfile.toString();
}
}
} catch (IMException e) {
e.printStackTrace();
FacesMessage fm = new FacesMessage(e.getMessage());