ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription, "RegistrationPropertyDescription");
PropertyDescription propDesc = WSRPTypeFactory.createPropertyDescription(propertyDescription.getName().toString(),
propertyDescription.getType());
// todo: deal with languages properly!!
LocalizedString hint = propertyDescription.getHint();
if (hint != null)
{
propDesc.setHint(convertToWSRPLocalizedString(hint));
}
LocalizedString label = propertyDescription.getLabel();
if (label != null)
{
propDesc.setLabel(convertToWSRPLocalizedString(label));
}
return propDesc;