class LicenseSupport {

    public static LicenseInformation parseSpdxExpression(String expression) {
        try {
            return LicenseSupport.fromSPDXExpression(expression);
        } catch (SpdxException e) {
            License unparsableExpression = new License();
            unparsableExpression.setId(expression);
            return unparsableExpression;
        }
    }

}