class ByteArrayResource implements Resource {

    @Override
    public InputStream getResourceAsStream(String location) {
        InputStream result = null;
        if (location != null && location.equals(this.location)) {
            result = new ByteArrayInputStream(bytes);
        }
        return result;
    }

    public  ByteArrayResource(String location, byte[] bytes);

}