Added Javadoc for component preparation.