Reading a MagicDraw Profile

Here is a sample code that shows how to read a MagicDraw Profile:
Map<String, ?> options = null;
try {
	new MagicDrawProfileResourceReader(model, options).read("c:\path.mdzip");
} catch (CoreException e) {
	...
}
Where path_to_profile represents the path the the profile to load.

Reading the SysML Profile

Here is a sample code that shows how to read the SysML Profile:
Map<String, ?> options = null;
try {
	new MagicDrawProfileResourceReader(model, options).readSysML();
} catch (CoreException e) {
	...
}

Reading the UPDM Profile

Here is a sample code that shows how to read the UPDM Profile:
Map<String, ?> options = null;
try {
	new MagicDrawProfileResourceReader(model, options).readUPDM();
} catch (CoreException e) {
	...
}

Reading the BPMN Profile

Here is a sample code that shows how to read the BPMN Profile:
Map<String, ?> options = null;
try {
	new MagicDrawProfileResourceReader(model, options).readBPMN();
} catch (CoreException e) {
	...
}

Reading the Ecore Profile

Here is a sample code that shows how to read the Ecore Profile:
Map<String, ?> options = null;
try {
	new MagicDrawProfileResourceReader(model, options).readEcore();
} catch (CoreException e) {
	...
}

Related concepts
Profile and Stereotype

Related reference
MDAccess for UML API Reference
MDAccess for MagicDraw API Reference
MagicDraw Profile Resource Reader