code: public ApplicationDefinition refreshSchema()  {
          try {
              // Send a GET request to "/_applications/{application}
              StringBuilder uri = new StringBuilder("/_applications/");
              uri.append(Utils.urlEncode(m_appDef.getAppName()));
              RESTResponse response = m_restClient.sendRequest(HttpMethod.GET, uri.toString());
              m_logger.debug("listApplication() response: {}", response.toString());
              throwIfErrorResponse(response);
              m_appDef.parse(getUNodeResult(response));
              return m_appDef;
          } catch (Exception e) {
              throw new RuntimeException(e);
          }
      }
docs: Refresh this session's application schema from the database. Since the
  application's {@link ApplicationDefinition} is cached, it could be out of date
  if the schema has been modified. This method fetches the latest version and
  returns it. An exception is thrown if the application has been deleted or any
  other error occurs.
  
  @return  Latest version of this session's application as an
  {@link ApplicationDefinition}, which is also cahced.
  @see #getAppDef()