public void afterMerge(Entity entity,View view){
  if (!isAuthorizationRequired()) {
    return;
  }
  if (entity != null) {
    metadataTools.traverseAttributesByView(view,entity,new ClearInaccessibleAttributesVisitor());
  }
}

public void afterMerge ( Entity entity , View view ) { if ( ! isAuthorizationRequired ( ) ) { return ; } if ( entity != null ) { metadataTools . traverseAttributesByView ( view , entity , new ClearInaccessibleAttributesVisitor ( ) ) ; } }
should be called after merging an entity and transaction commit .
