public static String createDocumentFrom ( ChunksManifestBean manifest ) { ChunksManifestDocument doc = ChunksManifestDocument . Factory . newInstance ( ) ; if ( null != manifest ) { ChunksManifestType manifestType = ManifestElementWriter . createChunksManifestElementFrom ( manifest ) ; doc . setChunksManifest ( manifestType ) ; } return docToString ( doc ) ; }
This method serializes the arg ChunksManifest object into an xml document .