}
if (userId != null && password != null && companyId != null) {
try {
KeyValuePair kvp = UserLocalServiceUtil.decryptUserId(Long.parseLong(companyId), userId, password);
userByScreenName = UserLocalServiceUtil.getUserById(Long.valueOf(kvp.getKey()));
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (PortalException e) {
// TODO Auto-generated catch block