@SuppressWarnings("unchecked") public ThrowingMockTokenFilterFactory(Map<String,String> args){
  super(args);
  String exceptionClassName=args.get("exceptionClassName");
  if (exceptionClassName == null) {
    throw new RuntimeException("Required parameter exceptionClassName is missing");
  }
  try {
    exceptionClass=(Class<? extends RuntimeException>)Class.forName(exceptionClassName);
  }
 catch (  ClassNotFoundException e) {
    throw new RuntimeException(e);
  }
}

@ SuppressWarnings ( "unchecked" ) public ThrowingMockTokenFilterFactory ( Map < String , String > args ) { super ( args ) ; String exceptionClassName = args . get ( "exceptionClassName" ) ; if ( exceptionClassName == null ) { throw new RuntimeException ( "Required parameter exceptionClassName is missing" ) ; } try { exceptionClass = ( Class < ? extends RuntimeException > ) Class . forName ( exceptionClassName ) ; } catch ( ClassNotFoundException e ) { throw new RuntimeException ( e ) ; } }
initialize this factory via a set of key - value pairs .
