@POST
    @Consumes({
        MediaType.TEXT_XML, MediaType.APPLICATION_XML
    })
    public Response postResource(@PathParam(JaxRxConstants.SYSTEM) final String system,
        @PathParam(JaxRxConstants.RESOURCE) final String resource, @Context final HttpHeaders headers,
        final InputStream input) {

        final JaxRx impl = Systems.getInstance(system);
        final String info = impl.add(input, new ResourcePath(resource, headers));
        return Response.created(null).entity(info).build();
    }
@ POST @ Consumes ( { MediaType . TEXT_XML , MediaType . APPLICATION_XML } ) public Response postResource ( @ PathParam ( JaxRxConstants . SYSTEM ) final String system , @ PathParam ( JaxRxConstants . RESOURCE ) final String resource , @ Context final HttpHeaders headers , final InputStream input ) { final JaxRx impl = Systems . getInstance ( system ) ; final String info = impl . add ( input , new ResourcePath ( resource , headers ) ) ; return Response . created ( null ) . entity ( info ) . build ( ) ; }
This method will be called when an HTTP client sends a POST request to an
existing resource to add a resource. Content-Type must be 'text/xml'.

@param system
The implementation system.
@param resource
The resource name.
@param headers
HTTP header attributes.
@param input
The input stream.
@return The {@link Response} which can be empty when no response is
expected. Otherwise it holds the response XML file.