code: @Deprecated
      public static Response.ResponseBuilder created(AbstractElement element, UriInfo info, String id) {
          return Response.status(CREATED)
                  .location(info.getRequestUriBuilder().segment(id).build())
                  .entity(element);
      }
docs: This method exists solely to concentrate usage of {@link javax.ws.rs.core.Response#created(java.net.URI)} into
  one place until <a href="https://issues.jboss.org/browse/RESTEASY-1162">this JIRA</a> is resolved somehow.
  
  @param element the newly created element. This will be returned in the response body as a JSON payload
  @param info the UriInfo instance of the current request
  @param id   the ID of a newly created entity under the base
  @return the response builder with status 201 and location set to the entity with the provided id.
  @deprecated This is only used by the deprecated REST API