if(parameter == null){
throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Component", this.getClass().getName()));
}
Component component = (Component)parameter;
// check for mandatory fields
String name = component.getName();
if(name == null || name.trim().equals("")){
throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Component.name", this.getClass().getName()));
}
String owner = component.getOwner();
if(owner == null || owner.trim().equals("")){
throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Component.owner", this.getClass().getName()));
}
String description = component.getDescription();
if(description == null){
description = "";
}