Contentlet contentlet=new Contentlet();
Map<String, Object> map = new HashMap<String, Object>();
for(BodyPart part : multipart.getBodyParts()) {
ContentDisposition cd=part.getContentDisposition();
String name=cd!=null && cd.getParameters().containsKey("name") ? cd.getParameters().get("name") : "";
if(part.getMediaType().equals(MediaType.APPLICATION_JSON_TYPE) || name.equals("json")) {
try {
processJSON(contentlet,part.getEntityAs(InputStream.class));
} catch (JSONException e) {