instanceof already does a null check
Switch is faster than if
registerFamily can return the immutableEntities. No need to manually get them afterwards
No need to call get twice
Merge pull request #89 from Lusito/not_necessary

Performance improvements