146147148149150151152153154155156157
return original; } private Version decorate(Version original, Class<? extends VersionDecorator> clazz) { try { VersionDecorator d = clazz.newInstance(); return d.apply(original); } catch (Exception ex) { ex.printStackTrace(); return original; } }