private static String getPropertyName(final Method method) {
        final String name = method.getName();
        if (name.startsWith("get") || name.startsWith("set")) {
            final String propertyName = name.substring(3);
            return propertyName.substring(0, 1).toLowerCase() + propertyName.substring(1);
        }
        if (name.startsWith("is")) {
            final String propertyName = name.substring(2);
            return propertyName.substring(0, 1).toLowerCase() + propertyName.substring(1);
        }
        return null;
    }
Given a class return all the property names.
stroom-legacy/stroom-legacy-impex_6_1/src/main/java/stroom/legacy/impex_6_1/BeanPropertyUtil.java