Framework code for the SubtileEntity system.