class BuiltinSchemeStrategy implements SchemeStrategy {

    @Override
    public InputStream getInputStream(final String sessionId, final URI uri,
            final RequestMethod method, final long timeout,
            final Collection<KeyValuePair> parameters)
            throws BadFetchError, UnsupportedElementError, IOException {
        final String type = extractBuiltinType(uri);
        final GrammarCreator creator = creators.get(type);
        if (creator == null) {
            throw new UnsupportedBuiltinError("builtin type '" + type
                    + "' is not supported!");
        }
        final byte[] bytes = creator.createGrammar(uri);
        return new ByteArrayInputStream(bytes);
    }

    public  BuiltinSchemeStrategy();

}