class PartListToPartArrayConverter implements Converter {

  @Override
  public Object convert(Object value) {
    if (value == null) {
      return null;
    }

    @SuppressWarnings("unchecked")
    List<Part> partList = (List<Part>) value;
    return partList.toArray(new Part[partList.size()]);
  }

}