private static void loadDefault( final Properties properties, final Class<? extends GuiceProperty> guiceProperty) { for (final Field field : guiceProperty.getDeclaredFields()) { System.out.println("checking if default:" + field); LOGGER.trace("checking value:" + field); if (field.isAnnotationPresent(DefaultValue.class)) { System.out.println("loading default:" + field); LOGGER.trace("setting default value:" + field); try { properties.setProperty(getName(guiceProperty), getValue(field).toString()); if (field.isEnumConstant()) loadDefaultOnInterface(properties, guiceProperty, field); } catch (IllegalAccessException e) { System.err.println("error setting default:" + field); LOGGER.warn("Unable to set default value", e); } } } }