if (parts == null) {
final List<Part> parts = new ArrayList<Part>();
String mimeType = exchange.getRequestHeaders().getFirst(Headers.CONTENT_TYPE);
if (mimeType != null && mimeType.startsWith(MultiPartHandler.MULTIPART_FORM_DATA)) {
final FormDataParser parser = exchange.getAttachment(FormDataParser.ATTACHMENT_KEY);
final FormData value = parser.parseBlocking();
for (final String namedPart : value) {
for (FormData.FormValue part : value.get(namedPart)) {
//TODO: non-file parts?
parts.add(new PartImpl(namedPart, part));
}