 In 1909, the school moved to new premises in Dover, and the Asylum building was taken over by the Territorial Army and renamed the Duke of York's Barracks in 1911.During the First World War it was the headquarters of the 18th (County of London) Battalion, London Regiment (London Irish Rifles) and of the Middlesex Yeomanry.During the Second World War, the courts martial of German spies, Josef Jakobs and Theodore Schurch, (both tried under the Treachery Act 1940) were both conducted in the building.