public static Filter createFilter(String command) {
        // NYI: A filter with arguments.
        command = command.trim();
        int argIndex = command.indexOf(" ");
        String name = null;
        if (argIndex > 1) {
            name = "filters." + command.substring(0, argIndex);
        } else {
            name = "filters." + command;
        }
        try {
            Class filterClass = Class.forName(name);
            if (filterClass == null) {
                return null;
            }
            // NYI: Make sure this cast is valid.
            Filter filter = (Filter) filterClass.newInstance();
            String args = null;
            if (argIndex > 1) {
                args = command.substring(argIndex, command.length());
            } else {
                args = "";
            }
            filter.setArguments(args);
            return filter;
        } catch (ClassNotFoundException e) {
            // Do nothing.
        } catch (InstantiationException e) {
            // Do nothing.
        } catch (IllegalAccessException e) {
            // Do nothing.
        } catch (NoClassDefFoundError e) {
            // Do nothing.
        }
        return null;
    }