public static V1ModelDescription toV1ModelDescription(ModelDescription modelDescription)
{
if (modelDescription != null)
{
V1ModelDescription result = WSRP1TypeFactory.createModelDescription(WSRPUtils.transform(modelDescription.getPropertyDescriptions(), PROPERTYDESCRIPTION));
List<V1Extension> extensions = WSRPUtils.transform(modelDescription.getExtensions(), EXTENSION);
if (extensions != null)
{
result.getExtensions().addAll(extensions);
}
result.setModelTypes(toV1ModelTypes(modelDescription.getModelTypes()));
return result;
}
else
{