@Override public boolean hasPermission(U currentUser,String permission){
  log.debug("Computing " + permission + " permission for : "+ this+ "\n  Logged in user: "+ currentUser);
  decorate(currentUser);
  if (permission.equals("edit"))   return editable;
  return false;
}

@ Override public boolean hasPermission ( U currentUser , String permission ) { log . debug ( "Computing " + permission + " permission for : " + this + "\n  Logged in user: " + currentUser ) ; decorate ( currentUser ) ; if ( permission . equals ( "edit" ) ) return editable ; return false ; }
called by spring security permission evaluator to check whether the current - user has the given permission on this entity .
