else
throw new CoersionException("Invalid package reference: " + original);
}
} else if (target == String.class) {
if (original instanceof IClassArtifactReference) {
IClassArtifactReference ref = (IClassArtifactReference) original;
StringBuffer sb = new StringBuffer();
sb.append(ref.getGroupId()).append(":").append(ref.getArtifactId()).append(":");
if (ref instanceof IClassPackageReference) {
IClassPackageReference pref = (IClassPackageReference) ref;
sb.append(":").append(pref.getVersion().toVersionString());