if(metadata instanceof Representation) return (Representation)metadata;
if(variant instanceof Representation) return (Representation)variant;
   public Representation getRepresentation(RepresentationMetadata metadata)   {      if(metadata instanceof Representation) return (Representation)metadata;      else return null;   }