Matcher matcher = PATTERN1.matcher(clause);
if (matcher.find())
myPath = matcher.group().replaceAll("\\s", "");
else
throw new IllegalArgumentException("Invalid " + Constants.IMPORT_PACKAGE + " header clause: " + clause);
matcher.usePattern(PATTERN2);
while (matcher.find()) {
Parameter parameter = ParameterFactory.create(matcher.group());
// TODO Revisit the following fix.
// All version attributes on an ImportPackage header are ranges. The ParameterFactory will return
// a VersionAttribute when the value is a single version (e.g., version=1.0.0). This causes a