/** * {@inheritDoc} This implementation uses * {@code PropertyUtils.copyProperties()} to copy all defined properties * from the source object onto the passed in parameters object. Both the map * with properties (obtained via the {@code getParameters()} method of the * source parameters object) and other properties of the source object are * copied. * * @throws ConfigurationRuntimeException if an exception occurs * @see BuilderParameters#getParameters() */ @Override public void initializeDefaults(final Object parameters) { try { BeanHelper.copyProperties(parameters, getSource() .getParameters()); BeanHelper.copyProperties(parameters, getSource()); } catch (final Exception e) { // Handle all reflection-related exceptions the same way throw new ConfigurationRuntimeException(e); } } }