if (realEntity != null) {
PostDeployEntityProcessor entityProcessor = realEntity.getExtensionObject(PostDeployEntityProcessor.class);
if (entityProcessor == null) {
entityProcessor = new DefaultPostDeployEntityProcessor();
}
entityProcessor.doPostDeployProcessing(realEntity, postDeployManager);
// We must process the renaming first, because if the entity was goven a new name on the
// server it will be flagged as deployDirty when the new name is applied here on the client
processEntityRename(realEntity);
realEntity.setDeployed(true);
realEntity.setDeployDirty(false);