and replaced by a statutory crime of sexual assault. United Kingdom Piracy with violence Section 2 of the Piracy Act 1837 provides that it is an offence, amongst other things, for a person, with intent to commit or at the time of or immediately before or immediately after committing the crime of piracy in respect of any ship or vessel, to assault, with intent to murder, any person being on board of or belonging to such ship or vessel. Assault on an officer of Revenue and Customs This offence (relating to officers of HMRC) is created by section 32(1) of the Commissioners for Revenue and Customs Act 2005. Assaulting an immigration officer This offence is created by section 22(1) of the UK Borders Act 2007. Assaulting an accredited financial investigator This section is created by section 453A of the Proceeds of Crime Act 2002. Assaulting a member of an international joint investigation team This offence is created by section 57(2) of the Serious Organised Crime and Police Act 2005. Attacks on internationally protected persons Section 1(1)(a) of the Internationally Protected Persons Act 1978 (c.17) makes provision for assault occasioning actual bodily harm or causing injury on "protected persons" (including Heads of State). Attacks on UN Staff workers Section 1(2)(a) of the United Nations Personnel Act 1997 (c.13) makes provision for assault causing injury, and section 1(2)(b) makes provision for assault occasioning actual bodily harm, on UN staff. Assault by person committing an offence under the Night Poaching Act 1828 This offence is created by section 2 of the Night Poaching Act 1828. Abolished offences: Assault on customs and excise officers, etc. Section 16(1)(a) of the Customs and Excise Management Act 1979 (c.2) provided that it was an offence to, amongst other things, assault any person duly engaged in the performance of any duty or the exercise of any power imposed or conferred on him by or under any enactment relating to an assigned matter, or any person acting in his aid. For the meaning of "assault" in this provision, see Logdon v. DPP [1976] Crim LR 121, DC. This offence was abolished and replaced by the Commissioners for Revenue and Customs Act 2005. Assaulting a person designated under section 43 of the Serious Organised Crime and Police Act 2005 This offence was created by section 51(1) of the Serious Organised Crime and Police Act 2005. It related to officers of