public Jsp compile(final String jspPath, Map taglibs) {
try {
JasperCompiler compiler = new JasperCompiler();
compiler.setWebRoot(getWebRoot());
compiler.setClassOutputBaseDir(getOutputDirectory());
JspCompilationInfo info = compiler.compile(jspPath, taglibs);
final Class servletClass = compileToClass(info);
return new JspImpl(servletClass);
} catch (Exception e) {
throw new RuntimeException(e);
}