static Response putAny(final Class<?> resourceType,
final Scope ns,
final String key,
final HttpServletRequest request) throws IOException {
Access access = new HttpAccess(Operation.CREATE, request);
if (!ns.allows(resourceType, access)) return FORBIDDEN;
final int maxLength = ns.maxLength(resourceType, access);
if (maxLength < request.getContentLength()) return TOO_LARGE;
final String data = StreamTool.maybeConsume(request.getInputStream(), Charset.forName("UTF-8"), maxLength);