A reliable method is to serialize the article, then deserialize. This assures everything is a source.
Here's an article on how to prepare this efficiently.
Want to learn Java from scratch? Here's is the right video for you on Java provided by Intellipaat:
Caveats: Properties can revoke serialization so that distinct cases are non designed, e.g. for singletons. Besides this of the sequence doesn't operate if your classes aren't Serializable