}
return reqs;
}
private ReqVersion tryToParseType(String version, ReqType defaultReqType) {
ReqType type = ReqType.fromStringStart(version);
if (type != null) {
// strip the reqtype from the version
version = version.substring(type.toString().length());
} else {
type = defaultReqType;
}
return new ReqVersion(type, version);
}