//TODO: This needs to be fixed at gravia
private static MavenCoordinates parse(String coordinates) {
        MavenCoordinates result;
        String[] parts = coordinates.split(":");
        if (parts.length == 3) {
            result =  MavenCoordinates.create(parts[0], parts[1], parts[2], null, null);
        } else if (parts.length == 4) {
            result = MavenCoordinates.create(parts[0], parts[1], parts[2], parts[3], null);
        } else if (parts.length == 5) {
            result = MavenCoordinates.create(parts[0], parts[1], parts[2], parts[3], parts[4]);
        } else {
            throw new IllegalArgumentException("Invalid coordinates: " + coordinates);
        }
        return result;
    }
private static MavenCoordinates parse(String coordinates) {
MavenCoordinates result;
String[] parts = coordinates.split(":");
if (parts.length == 3) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], null, null);
} else if (parts.length == 4) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], parts[3], null);
} else if (parts.length == 5) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], parts[3], parts[4]);
} else {
throw new IllegalArgumentException("Invalid coordinates: " + coordinates);
}
return result;
}
private static MavenCoordinates parse(String coordinates) {
MavenCoordinates result;
String[] parts = coordinates.split(":");
if (parts.length == 3) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], null, null);
} else if (parts.length == 4) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], parts[3], null);
} else if (parts.length == 5) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], parts[3], parts[4]);
} else {
throw new IllegalArgumentException("Invalid coordinates: " + coordinates);
}
return result;
}
private static MavenCoordinates parse(String coordinates) {
MavenCoordinates result;
String[] parts = coordinates.split(":");
if (parts.length == 3) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], null, null);
} else if (parts.length == 4) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], parts[3], null);
} else if (parts.length == 5) {
result = MavenCoordinates.create(parts[0], parts[1], parts[2], parts[3], parts[4]);
} else {
throw new IllegalArgumentException("Invalid coordinates: " + coordinates);
}
return result;
}