GreyTeardrop
3/2/2012 - 9:44 PM

gistfile1.java

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);
}