add method getWindowsById

add method getWindowsById