* @param components The iPOJO Header String.
* @throws IOException if the manifest can not be found
* @throws ParseException if the parsing process failed
*/
private void parse(Bundle bundle, String components) throws IOException, ParseException {
ManifestMetadataParser parser = new ManifestMetadataParser();
parser.parseHeader(components);
// Get the component type declaration
Element[] metadata = parser.getComponentsMetadata();
for (int i = 0; i < metadata.length; i++) {
handleTypeDeclaration(bundle, metadata[i]);
}
Dictionary[] instances = parser.getInstances();
for (int i = 0; instances != null && i < instances.length; i++) {
handleInstanceDeclaration(bundle, instances[i]);
}
}