Program: 8850
Project: 8850
Buggy source:
/** 
 * Creates a new LDAP provider configuration based on the properties store in the given parameters.
 * @param params the configuration parameters.
 * @return the config
 */
public static DefaultSyncConfig of(ConfigurationParameters params){
  DefaultSyncConfig cfg=new DefaultSyncConfig().setName(params.getConfigValue(PARAM_NAME,PARAM_NAME_DEFAULT));
  cfg.user().setMembershipExpirationTime(ConfigurationParameters.Milliseconds.of(params.getConfigValue(PARAM_USER_MEMBERSHIP_EXPIRATION_TIME,PARAM_USER_MEMBERSHIP_EXPIRATION_TIME_DEFAULT)).value).setMembershipNestingDepth(params.getConfigValue(PARAM_USER_MEMBERSHIP_NESTING_DEPTH,PARAM_USER_MEMBERSHIP_NESTING_DEPTH_DEFAULT)).setExpirationTime(ConfigurationParameters.Milliseconds.of(params.getConfigValue(PARAM_USER_EXPIRATION_TIME,PARAM_USER_EXPIRATION_TIME_DEFAULT)).value).setPathPrefix(params.getConfigValue(PARAM_USER_PATH_PREFIX,PARAM_USER_PATH_PREFIX_DEFAULT)).setAutoMembership(params.getConfigValue(PARAM_USER_AUTO_MEMBERSHIP,PARAM_USER_AUTO_MEMBERSHIP_DEFAULT)).setPropertyMapping(createMapping(params.getConfigValue(PARAM_USER_PROPERTY_MAPPING,PARAM_USER_PROPERTY_MAPPING_DEFAULT)));
  cfg.group().setExpirationTime(ConfigurationParameters.Milliseconds.of(params.getConfigValue(PARAM_GROUP_EXPIRATION_TIME,PARAM_GROUP_EXPIRATION_TIME_DEFAULT)).value).setPathPrefix(params.getConfigValue(PARAM_GROUP_PATH_PREFIX,PARAM_GROUP_PATH_PREFIX_DEFAULT)).setAutoMembership(params.getConfigValue(PARAM_GROUP_AUTO_MEMBERSHIP,PARAM_GROUP_AUTO_MEMBERSHIP_DEFAULT)).setPropertyMapping(createMapping(params.getConfigValue(PARAM_GROUP_PROPERTY_MAPPING,PARAM_GROUP_PROPERTY_MAPPING_DEFAULT)));
  return cfg;
}

Fixed version (ground truth):
/** 
 * Creates a new LDAP provider configuration based on the properties store in the given parameters.
 * @param params the configuration parameters.
 * @return the config
 */
public static DefaultSyncConfig of(ConfigurationParameters params){
  DefaultSyncConfig cfg=new DefaultSyncConfig().setName(params.getConfigValue(PARAM_NAME,PARAM_NAME_DEFAULT));
  cfg.user().setMembershipExpirationTime(getMilliSeconds(params,PARAM_USER_MEMBERSHIP_EXPIRATION_TIME,PARAM_USER_MEMBERSHIP_EXPIRATION_TIME_DEFAULT,ONE_HOUR)).setMembershipNestingDepth(params.getConfigValue(PARAM_USER_MEMBERSHIP_NESTING_DEPTH,PARAM_USER_MEMBERSHIP_NESTING_DEPTH_DEFAULT)).setExpirationTime(getMilliSeconds(params,PARAM_USER_EXPIRATION_TIME,PARAM_USER_EXPIRATION_TIME_DEFAULT,ONE_HOUR)).setPathPrefix(params.getConfigValue(PARAM_USER_PATH_PREFIX,PARAM_USER_PATH_PREFIX_DEFAULT)).setAutoMembership(params.getConfigValue(PARAM_USER_AUTO_MEMBERSHIP,PARAM_USER_AUTO_MEMBERSHIP_DEFAULT)).setPropertyMapping(createMapping(params.getConfigValue(PARAM_USER_PROPERTY_MAPPING,PARAM_USER_PROPERTY_MAPPING_DEFAULT)));
  cfg.group().setExpirationTime(getMilliSeconds(params,PARAM_GROUP_EXPIRATION_TIME,PARAM_GROUP_EXPIRATION_TIME_DEFAULT,ONE_DAY)).setPathPrefix(params.getConfigValue(PARAM_GROUP_PATH_PREFIX,PARAM_GROUP_PATH_PREFIX_DEFAULT)).setAutoMembership(params.getConfigValue(PARAM_GROUP_AUTO_MEMBERSHIP,PARAM_GROUP_AUTO_MEMBERSHIP_DEFAULT)).setPropertyMapping(createMapping(params.getConfigValue(PARAM_GROUP_PROPERTY_MAPPING,PARAM_GROUP_PROPERTY_MAPPING_DEFAULT)));
  return cfg;
}