if (entityTrackerEntry == null) {
return null;
} else if (entityTrackerEntry instanceof NMSEntityTrackerEntry) {
result = ((NMSEntityTrackerEntry) entityTrackerEntry).getController();
} else if (EntityTrackerEntry.class.equals(entityTrackerEntry.getClass())) {
result = new DefaultEntityNetworkController();
result.bind(this, entityTrackerEntry);
} else {
result = new ExternalEntityNetworkController();
result.bind(this, entityTrackerEntry);
}