* {@link SocialAccount}.
* @return {@link SocialAccountBean}
*/
public static final SocialAccountBean convertSocialAccountToBean(
final SocialAccount socialAccount) {
final SocialAccountBean socialAccountBean = new SocialAccountBean();
socialAccountBean.setAccount(socialAccount.getSocialAccountName());
socialAccountBean.setAccountId(socialAccount.getId());
socialAccountBean.setTypeAccount(socialAccount.getAccounType()
.toString());
socialAccountBean.setDescriptionProfile(socialAccount
.getDescriptionProfile());
socialAccount.setEmail(socialAccount.getEmail() == null ? ""
: socialAccount.getEmail());
socialAccountBean.setDefaultSelected(socialAccount.getDefaultSelected() == null ? false
: socialAccount.getDefaultSelected());
socialAccountBean.setAddedAccount(socialAccount.getAddedAccount());
socialAccountBean.setPrictureUrl(socialAccount.getPrictureUrl());
socialAccountBean.setProfilePictureUrl(socialAccount
.getProfilePictureUrl());
socialAccountBean.setProfileThumbnailPictureUrl(socialAccount
.getProfileThumbnailPictureUrl());
socialAccountBean.setRealName(socialAccount.getRealName());
socialAccountBean.setSocialAccountName(socialAccount
.getSocialAccountName());
socialAccountBean.setSocialProfileUrl(socialAccount
.getPublicProfileUrl() == null ? "" : socialAccount
.getPublicProfileUrl());
return socialAccountBean;
}