As per the comment of @alejandrorago the current implementation of the Palladio path mapping can be simplified to:
static {
Path currentPath = Paths.get("").toAbsolutePath();
Path workspacePath = currentPath.getParent();
String uriPath = workspacePath.normalize().toString();
//URI platformURI = URI.createPlatformPluginURI("org.palladiosimulator.pcm.resources", true).appendSegment("defaultModels").appendSegment("");
URI physicalURI = URI.createFileURI(uriPath).appendSegment("PCM").appendSegment("org.palladiosimulator.pcm.resources").appendSegment("defaultModels").appendSegment("");
URI pcmModels = URI.createURI("pathmap://PCM_MODELS/");
URIConverter.URI_MAP.put(pcmModels, physicalURI);
}
As per the comment of @alejandrorago the current implementation of the Palladio path mapping can be simplified to: