out.close();
return new String(out.toByteArray(), "US-ASCII");
}
private static Pattern createPattern(String patternString) {
Pattern pattern = new Pattern();
String[] elements = patternString.split("/", 6);
pattern.setGroupId(elements[0]);
pattern.setArtifactId(elements[1]);
pattern.setVersion(elements[2]);
pattern.setType(elements[3]);
pattern.setModule(elements[4]);
pattern.setName(elements[5]);
return pattern;
}