public V1UploadContext apply(UploadContext uploadContext)
{
if (uploadContext != null)
{
V1UploadContext result = WSRP1TypeFactory.createUploadContext(uploadContext.getMimeType(), uploadContext.getUploadData());
List<Extension> extensions = uploadContext.getExtensions();
if (extensions != null)
{
result.getExtensions().addAll(Lists.transform(extensions, EXTENSION));
}
List<NamedString> mimeAttributes = uploadContext.getMimeAttributes();
if (mimeAttributes != null)
{
result.getMimeAttributes().addAll(Lists.transform(mimeAttributes, NAMEDSTRING));
}
return result;
}
else