private boolean ignoreProperty(
        PropertyDescriptor descriptor,
        String[] ignoreProperties) {

        boolean ignore = false;
        if (descriptor.getName().equals("class")) {
            ignore = true;
        } else {
            for (int i = 0; i < ignoreProperties.length; i++) {
                String ignoreProp = ignoreProperties[i];
                if (ignoreProp.equals(descriptor.getName())) {
                    log.debug("Ignoring " + descriptor.getName());
                    ignore = true;
                    break;
                }
            }
        }
        return ignore;
    }