modify http java code