/** * Create a basic representation * * @param resource Resource * @return */ public static Representation construct(Resource resource) { CoupleList<String, Object> serialization = resource.serialize(); return JdomRepresentation.construct(resource.getPrefix(), serialization); }
/** {@inheritDoc } */ @Override public JdomRepresentation copy() { JdomRepresentation result = new JdomRepresentation(this.toString()); assert result.getDocument() != this.document : "In memory documents should be differents"; return result; }