try {
xnetUser.traverseDependentObjects();
if (!xnetUser.hasPermissionForHotel(permissionId, hotelId))
{
throw new HwSecurityException(HotwireErrors.SEC_VERIFICATION_FAILED);
}
return xnetUser;
}
catch (Throwable t) {
log.log(Level.SEVERE,"Unexpected " + t, t);
throw new HwXnetException(HotwireErrors.RUNTIME_ERROR, t);
}