Gul underlined that the law was a requirement under Turkey 's bid to join the European Union and found the law " compatible with the existing law on military courts , " a statement from his office said .