Available on java
@:throws("java.io.IOException")register(param1:WatchService, param2:NativeArray<WatchEvent_Kind<Dynamic>>):WatchKey
@:throws("java.io.IOException")register(param1:WatchService, param2:NativeArray<WatchEvent_Kind<Dynamic>>, param3:NativeArray<WatchEvent_Modifier>):WatchKey