Program: 42894
Project: 42894
Buggy source:
private RegisterRequest createRegisterClientRequest(RegisterSiteParams params){
  List<ResponseType> responseTypes=Lists.newArrayList();
  for (  String type : params.getResponseTypes()) {
    responseTypes.add(ResponseType.fromString(type));
  }
  String clientName="String_Node_Str" + siteConfiguration.getOxdId();
  final RegisterRequest request=new RegisterRequest(ApplicationType.WEB,clientName,params.getRedirectUris());
  request.setResponseTypes(responseTypes);
  request.setJwksUri(params.getClientJwksUri());
  request.setPostLogoutRedirectUris(params.getPostLogoutRedirectUri() != null ? Lists.newArrayList(params.getPostLogoutRedirectUri()) : Lists.<String>newArrayList());
  request.setContacts(params.getContacts());
  request.setScopes(params.getScope());
  List<GrantType> grantTypes=Lists.newArrayList();
  for (  String grantType : params.getGrantType()) {
    grantTypes.add(GrantType.fromString(grantType));
  }
  request.setGrantTypes(grantTypes);
  request.setLogoutUris(Lists.newArrayList(params.getClientLogoutUri()));
  if (StringUtils.isNotBlank(params.getClientTokenEndpointAuthMethod())) {
    final AuthenticationMethod authenticationMethod=AuthenticationMethod.fromString(params.getClientTokenEndpointAuthMethod());
    if (authenticationMethod != null) {
      request.setTokenEndpointAuthMethod(authenticationMethod);
    }
  }
  if (params.getClientRequestUris() != null && !params.getClientRequestUris().isEmpty()) {
    request.setRequestUris(params.getClientRequestUris());
  }
  if (!Strings.isNullOrEmpty(params.getClientSectorIdentifierUri())) {
    request.setSectorIdentifierUri(params.getClientSectorIdentifierUri());
  }
  siteConfiguration.setResponseTypes(params.getResponseTypes());
  siteConfiguration.setPostLogoutRedirectUri(params.getPostLogoutRedirectUri());
  siteConfiguration.setContacts(params.getContacts());
  siteConfiguration.setRedirectUris(Lists.newArrayList(params.getRedirectUris()));
  return request;
}

Fixed version (ground truth):
private RegisterRequest createRegisterClientRequest(RegisterSiteParams params){
  List<ResponseType> responseTypes=Lists.newArrayList();
  for (  String type : params.getResponseTypes()) {
    responseTypes.add(ResponseType.fromString(type));
  }
  String clientName="String_Node_Str" + siteConfiguration.getOxdId();
  final RegisterRequest request=new RegisterRequest(ApplicationType.WEB,clientName,params.getRedirectUris());
  request.setResponseTypes(responseTypes);
  request.setJwksUri(params.getClientJwksUri());
  request.setPostLogoutRedirectUris(params.getPostLogoutRedirectUri() != null ? Lists.newArrayList(params.getPostLogoutRedirectUri()) : Lists.<String>newArrayList());
  request.setContacts(params.getContacts());
  request.setScopes(params.getScope());
  request.setDefaultAcrValues(params.getAcrValues());
  List<GrantType> grantTypes=Lists.newArrayList();
  for (  String grantType : params.getGrantType()) {
    grantTypes.add(GrantType.fromString(grantType));
  }
  request.setGrantTypes(grantTypes);
  request.setLogoutUris(Lists.newArrayList(params.getClientLogoutUri()));
  if (StringUtils.isNotBlank(params.getClientTokenEndpointAuthMethod())) {
    final AuthenticationMethod authenticationMethod=AuthenticationMethod.fromString(params.getClientTokenEndpointAuthMethod());
    if (authenticationMethod != null) {
      request.setTokenEndpointAuthMethod(authenticationMethod);
    }
  }
  if (params.getClientRequestUris() != null && !params.getClientRequestUris().isEmpty()) {
    request.setRequestUris(params.getClientRequestUris());
  }
  if (!Strings.isNullOrEmpty(params.getClientSectorIdentifierUri())) {
    request.setSectorIdentifierUri(params.getClientSectorIdentifierUri());
  }
  siteConfiguration.setResponseTypes(params.getResponseTypes());
  siteConfiguration.setPostLogoutRedirectUri(params.getPostLogoutRedirectUri());
  siteConfiguration.setContacts(params.getContacts());
  siteConfiguration.setRedirectUris(Lists.newArrayList(params.getRedirectUris()));
  return request;
}