It seems that one must go through security again if they are flying from terminal 4 because the lounge at JFK is in terminal 5. Just FYI that that can add an hour, at least.
Was this in response to something?
Generally in Jfk you need to reclear security in each terminal
In fact most times jfk will only let you clear in your terminal...
Additionally AFIK the only "lounge" in 5 is the be-relax spa.....