class RepositoriesController {

    private final RuntimeEnvironment env = RuntimeEnvironment.getInstance();

    private Object getRepositoryInfoData(String repositoryPath) {<FILL_FUNCTION_BODY>}

    @GET
    @Path("/property/{field}")
    @Produces(MediaType.APPLICATION_JSON)
    public Object get(@QueryParam("repository") final String repositoryPath, @PathParam("field") final String field)
            throws IOException {

        Object ri = getRepositoryInfoData(repositoryPath);
        if (ri == null) {
            throw new WebApplicationException("cannot find repository with path: " + repositoryPath,
                    Response.Status.NOT_FOUND);
        }

        return ClassUtil.getFieldValue(ri, field);
    }
}

        for (RepositoryInfo ri : env.getRepositories()) {
            if (ri.getDirectoryNameRelative().equals(repositoryPath)) {
                return DTOUtil.createDTO(ri);
            }
        }

        return null;
    
<no_super_class>