if (partContentType!=null && partContentType.equals("application/json") && partContentName!=null && partContentName.equals("root-fields")) {
logger.debug("Have the JSON response part:"+(new String(data.toByteArray())));
ObjectMapper mapper=new ObjectMapper();
ByteArrayInputStream bais = new ByteArrayInputStream(data.toByteArray());
InboundMessageWrapper inboundMessageWrapper=mapper.readValue(bais, InboundMessageWrapper.class);
if (inboundMessageWrapper!=null && inboundMessageWrapper.getInboundMessage()!=null) response.setInboundMessage(inboundMessageWrapper.getInboundMessage());
} else {
RetrieveMMSMessageResponse.Attachment attachment=new RetrieveMMSMessageResponse.Attachment();
attachment.setAttachmentContentType(partContentType);
attachment.setAttachmentName(partContentName);
attachment.setAttachmentData(data.toByteArray());