@Override public Object filter(final Object target){
  if (target == null) {
    return null;
  }
  if (target instanceof Closure) {
    return target;
  }
  Class<?> clazz=target instanceof Class ? (Class<?>)target : target.getClass();
  if (clazz.isArray()) {
    clazz=clazz.getComponentType();
  }
  final String className=clazz.getName();
  if (classShutter.visibleToScripts(className)) {
    return target;
  }
 else {
    throw new SecurityException(String.format(ERROR_MESSAGE,className));
  }
}

@ Override public Object filter ( final Object target ) { if ( target == null ) { return null ; } if ( target instanceof Closure ) { return target ; } Class < ? > clazz = target instanceof Class ? ( Class < ? > ) target : target . getClass ( ) ; if ( clazz . isArray ( ) ) { clazz = clazz . getComponentType ( ) ; } final String className = clazz . getName ( ) ; if ( classShutter . visibleToScripts ( className ) ) { return target ; } else { throw new SecurityException ( String . format ( ERROR_MESSAGE , className ) ) ; } }
filters all objects according to the configured classshutter .
