@MKCOL public Message mkcol(@PathTranslated Path path, @Context Request request) { final Resource resource = resolveResource(path); if (request.hasBody()) { return clientErrorUnsupportedMediaType(); } else { if (resource.exists()) { return clientErrorMethodNotAllowed(); } else { if (resource.parent().exists()) { return (resource.mkcol() ? successCreated() : serverErrorInternal()); } else { return clientErrorConflict(); } } } }