question: public DSSDocument generateXAdESContentTimestampAsDSSDocument ( final DSSDocument toSignDocument , final XAdESSignatureParameters externalParameters , final TimestampType timestampType ) { final TimestampToken timestampToken = generateXAdESContentTimestampAsTimestampToken ( toSignDocument , externalParameters , timestampType ) ; return new InMemoryDocument ( timestampToken . getEncoded ( ) ) ; }
target:  Method that generates a XAdES ContentTimestamp (either an ALL DATA OBJECTS TIMESTAMP or an INDIVIDUAL DATA OBJECTS TIMESTAMP) and returns it as a DSSDocument