if(parameter == null){
throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Version", this.getClass().getName()));
}
Version version = (Version)parameter;
// check for mandatory fields
String name = version.getName();
if(name == null || name.trim().equals("")){
throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Version.name", this.getClass().getName()));
}
Date time = version.getTime();
if(time == null){
throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Version.time", this.getClass().getName()));
}
String description = version.getDescription();
if(description == null){
description = "";
}