//
// get hello text
String hello = (String) item.getProperties().get(HelloComponent.HELLO_OUTPUT_PROPERTY);
//
// get Variant
Variant variant = (Variant) item.getRestletVariant();
//
// represent
//if (variant.getMediaType().equals(MediaType.APPLICATION_JSON)) {
// result = new JsonRepresentation(this.user.toJSON());
//} else {
// result = new StringRepresentation(this.user.toString());
//}
Representation result = null;
if (variant.getMediaType().equals(MediaType.TEXT_PLAIN))
result = new StringRepresentation(hello);
else
result = new StringRepresentation("Variant no soportada");
//