package com.l7tech.server.policy.assertion.xml;

import com.l7tech.server.url.AbstractUrlObjectCache;
import com.l7tech.util.CausedIOException;
import com.l7tech.xml.xslt.CompiledStylesheet;
import com.l7tech.xml.xslt.StylesheetCompiler;
import java.io.IOException;
import java.text.ParseException;

class g implements AbstractUrlObjectCache.UserObjectFactory<CompiledStylesheet> {
   public CompiledStylesheet createUserObject(String var1, AbstractUrlObjectCache.UserObjectSource var2) throws IOException {
      String var3 = var2.getString(true);

      try {
         String var4 = ServerXslTransformation.b(var1);
         return StylesheetCompiler.compileStylesheet(var3, var4);
      } catch (ParseException var5) {
         throw new CausedIOException(var5);
      }
   }
}
