class DefaultWebApplication implements WebApplication {

    @Override
    public String getRealPath(String path) {
        String realPath = null;
        try {

            URL resourceUrl = getResource(path);

            if (resourceUrl != null && "file".equals(resourceUrl.getProtocol())) {
                File file = new File(resourceUrl.toURI());
                if (file.exists()) {
                    realPath = file.toString();
                }
            }
        } catch (MalformedURLException | URISyntaxException | IllegalArgumentException exception) {
            LOGGER.log(WARNING, exception, () -> "Unable to get real path: " + path);
        }
        return realPath;
    }

    public  DefaultWebApplication();

}