SpoutDev/Spout — comment on commit a8771fac7098f2322cebfcaef3ee02c84e295f2a
File: src/main/java/org/spout/server/entity/SpoutEntity.java line 126
By Raphfrk:

It is handled in the finalize run part. If the 2 controllers aren't equal, it deallocated and then immediately reallocates.