public void markLockedIfNecessary( IObject iObject, Details trustedDetails ) { if ( iObject == null ) return;
public void markLockedIfNecessary(IObject iObject) { if (iObject == null) return;
	public void markLockedIfNecessary( IObject iObject, Details trustedDetails )	{		if ( iObject == null ) return;				Set<IObject> s = new HashSet<IObject>();				if ( trustedDetails != null && trustedDetails.getPermissions().isSet( Flag.LOCKED ) )			s.add( iObject );				IObject[] candidates = em.getLockCandidates( iObject );		for (IObject object : candidates) 		{			s.add(object);			// TODO NEED TO CHECK FOR OWNERSHIP etc. etc.		}				CurrentDetails.appendLockCandidates( s );	}