public AbstractStyleSheetCompilerFactory(
final Source source, final FunctionResolver resolver) {
stylingFactory = StylingFactory.getDefaultInstance();
configuration = stylingFactory.createCompilerConfiguration();
configuration.setSupportedPseudoEntities(new PseudoStyleEntitiesImpl());
if (resolver != null) {
configuration.addFunctionResolver(resolver);
}
configuration.setSource(source);
}