code: public boolean isUbique(PhysicalEntity pe, Conversion conv, ConversionDirectionType dir,
  		RelType context)
  	{
  		String id = getSMRID(pe);
  		if (id == null) return false;
  
  		if (dir == null)
  			throw new IllegalArgumentException("The conversion direction has to be specified.");
  
  		if (context == null)
  			throw new IllegalArgumentException("The context has to be only one type.");
  
  		Set<PhysicalEntity> parts;
  
  		if (dir == ConversionDirectionType.REVERSIBLE)
  		{
  			if (conv.getLeft().contains(pe)) parts = conv.getLeft();
  			else if (conv.getRight().contains(pe)) parts = conv.getRight();
  			else throw new IllegalArgumentException("The PhysicalEntity has to be at least one " +
  					"side of the Conversion");
  		}
  		else
  		{
  			parts = dir == ConversionDirectionType.LEFT_TO_RIGHT ?
  				context == RelType.INPUT ? conv.getLeft() : conv.getRight() :
  				context == RelType.OUTPUT ? conv.getLeft() : conv.getRight();
  		}
  
  		// if the Conversion direction is reversible, then don't mind the current context
  		if (dir == ConversionDirectionType.REVERSIBLE)
  			return getUbiques(parts, null).contains(pe);
  		else return getUbiques(parts, context).contains(pe);
  	}
docs: Checks if the given entity is blacklisted for the given Conversion assuming the Conversion
  flows towards the given direction, and the entity is in given context.
  
  @param pe physical entity BioPAX object
  @param conv conversion interaction (BioPAX)
  @param dir conversion direction
  @param context relationship type - context
  @return true/false