public static String getTextualRepresentation(Representation representation, String identifier) {
   String ret = "";
   String representationType =
       RepresentationFactory.getRepresentationIdentifier(representation.getClass());
   String identifierPart = "";
   if (identifier != null) {
     identifierPart = ExampleFactory.REPRESENTATION_TYPE_NAME_SEPARATOR + identifier;
   }
   ret +=
       ExampleFactory.BEGIN_REPRESENTATION
           + representationType
           + identifierPart
           + ExampleFactory.DELIMITER
           + " "
           + representation.getTextFromData()
           + ExampleFactory.END_REPRESENTATION
           + representationType
           + ExampleFactory.DELIMITER;
   return ret;
 }