{
userWS = authenticationWS.authenticateNormal(username, password);
}
catch (RuntimeException e)
{
throw new SOAPException(e.getMessage());
}
if (userWS == null)
{
throw new RuntimeException("User not found!");
}
if (!userWS.isEnabled())
{
throw new RuntimeException(
"User disabled! Please Contact Admnistrator");
}
if(!AuthorizationWS.authorize(userWS, type)) {
throw new SOAPException("User not allowed to retrieve those informations. Contact Administrator");
}
return buildResult(userWS, arg0, "NormalAuthQueryResponse");
}