add Java constraint handling rules