private Response getTenantKey(
     final TenantKey key, @Nullable final String keyPostfix, final HttpServletRequest request)
     throws TenantApiException {
   final TenantContext tenantContext = context.createContext(request);
   final String tenantKey = keyPostfix != null ? key.toString() + keyPostfix : key.toString();
   final List<String> values = tenantApi.getTenantValuesForKey(tenantKey, tenantContext);
   final TenantKeyJson result = new TenantKeyJson(tenantKey, values);
   return Response.status(Status.OK).entity(result).build();
 }
 private Response deleteTenantKey(
     final TenantKey key,
     @Nullable final String keyPostfix,
     final String createdBy,
     final String reason,
     final String comment,
     final HttpServletRequest request)
     throws TenantApiException {
   final CallContext callContext = context.createContext(createdBy, reason, comment, request);
   final String tenantKey = keyPostfix != null ? key.toString() + keyPostfix : key.toString();
   tenantApi.deleteTenantKey(tenantKey, callContext);
   return Response.status(Status.OK).build();
 }
  private Response insertTenantKey(
      final TenantKey key,
      @Nullable final String keyPostfix,
      final String value,
      final UriInfo uriInfo,
      final String getMethodStr,
      final String createdBy,
      final String reason,
      final String comment,
      final HttpServletRequest request)
      throws TenantApiException {
    final CallContext callContext = context.createContext(createdBy, reason, comment, request);
    final String tenantKey = keyPostfix != null ? key.toString() + keyPostfix : key.toString();
    tenantApi.addTenantKeyValue(tenantKey, value, callContext);

    return uriBuilder.buildResponse(uriInfo, TenantResource.class, getMethodStr, keyPostfix);
  }