TCustomStateFactory

Factory method implementation for custom state templates