}
private Inflector<ContainerRequestContext, Response> deleteHandler(final String type) {
return new Inflector<ContainerRequestContext, Response>() {
public Response apply(ContainerRequestContext ctx) {
ParaObject obj = Utils.toObject(type);
obj.setId(ctx.getUriInfo().getPathParameters().getFirst(Config._ID));
return RestUtils.getDeleteResponse(obj);
}
};
}