modify cookie parse in java code