final EntityProxyPlace newEntityPlace = (EntityProxyPlace) newPlace;
final EntityProxyPlace menuEntityPlace = (EntityProxyPlace) menuPlace;
return newEntityPlace.getProxyClass().equals(menuEntityPlace.getProxyClass());
}
else if(newPlace instanceof EntitySearchPlace && menuPlace instanceof EntitySearchPlace) {
final EntitySearchPlace newEntityPlace = (EntitySearchPlace) newPlace;
final EntitySearchPlace menuEntityPlace = (EntitySearchPlace) menuPlace;
return newEntityPlace.getProxyClass().equals(menuEntityPlace.getProxyClass());
}
return newPlace.getClass().equals(menuPlace.getClass());
}