class AliasedDirectoryResource implements Resource {

    @Override
    public InputStream getResourceAsStream(String location) {
        InputStream result = null;
        if (location.startsWith(alias)) {
            location = location.substring(alias.length() + 1);
            File file = new File(rootDirectory, location);
            try {
                result = new FileInputStream(file);
            } catch (FileNotFoundException exception) {
            }
        }
        return result;
    }

    public  AliasedDirectoryResource();
    public  AliasedDirectoryResource(File rootDirectory, String alias);

}