code: @POST
     @Produces({MediaType.APPLICATION_JSON})
     @Path("meta/{repository}/{workspace}/{path:.*}")
     public Response getScriptMetadata(@PathParam("repository") String repository,
        @PathParam("workspace") String workspace, @PathParam("path") String path)
     {
        Session ses = null;
        try
        {
           ses =
              sessionProviderService.getSessionProvider(null).getSession(workspace,
                 repositoryService.getRepository(repository));
           Node script = ((Node)ses.getItem("/" + path)).getNode("jcr:content");
           ResourceId key = new NodeScriptKey(repository, workspace, script);
  
           ScriptMetadata meta = new ScriptMetadata(script.getProperty("exo:autoload").getBoolean(), //
              groovyPublisher.isPublished(key), //
              script.getProperty("jcr:mimeType").getString(), //
              script.getProperty("jcr:lastModified").getDate().getTimeInMillis());
           return Response.status(Response.Status.OK).entity(meta).type(MediaType.APPLICATION_JSON).build();
        }
        catch (PathNotFoundException e)
        {
           String msg = "Path " + path + " does not exists";
           LOG.error(msg);
           return Response.status(Response.Status.NOT_FOUND).entity(msg).entity(MediaType.TEXT_PLAIN).build();
        }
        catch (Exception e)
        {
           LOG.error(e.getMessage(), e);
           return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage())
              .type(MediaType.TEXT_PLAIN).build();
        }
        finally
        {
           if (ses != null)
           {
              ses.logout();
           }
        }
     }
docs: Get groovy script's meta-information.
  
  @param repository repository name
  @param workspace workspace name
  @param path JCR path to node that contains script
  @return groovy script's meta-information
  @response
  {code:json}
  "scriptList" : the groovy script's meta-information
  {code}
  @LevelAPI Provisional