{
Object body = null;
if (httpRequest.getContentType().contains("multipart/form-data"))
{
MultiPartInputStream in = new MultiPartInputStream(httpRequest.getBody(), httpRequest.getContentType(), null);
// We need to store this so that the headers for the part can be read
parts = in.getParts();
for (Part part : parts)
{
if (part.getName().equals("payload"))
{
body = part.getInputStream();