Add OpenClose by Java