// Path: ocpp-common/src/main/java/eu/chargetime/ocpp/feature/ProfileFeature.java
// public abstract class ProfileFeature implements Feature {
// 
//   private Profile profile;
// 
//   /**
//    * Creates link back to the {@link Profile}.
//    *
//    * @param ownerProfile the {@link Profile} that owns the function.
//    */
//   public ProfileFeature(Profile ownerProfile) {
//     if (ownerProfile == null) {
//       throw new IllegalArgumentException("need non-null profile");
//     }
//     profile = ownerProfile;
//   }
// 
//   /**
//    * Calls {@link Profile} to handle a {@link Request}.
//    *
//    * @param sessionIndex source of the request.
//    * @param request the {@link Request} to be handled.
//    * @return the {@link Confirmation} to be send back.
//    */
//   public Confirmation handleRequest(UUID sessionIndex, Request request) {
//     return profile.handleRequest(sessionIndex, request);
//   }
// }
// 
// Path: ocpp-v1_6/src/main/java/eu/chargetime/ocpp/feature/SendLocalListFeature.java
// public class SendLocalListFeature extends ProfileFeature {
// 
//   public SendLocalListFeature(Profile ownerProfile) {
//     super(ownerProfile);
//   }
// 
//   @Override
//   public Class<? extends Request> getRequestType() {
//     return SendLocalListRequest.class;
//   }
// 
//   @Override
//   public Class<? extends Confirmation> getConfirmationType() {
//     return SendLocalListConfirmation.class;
//   }
// 
//   @Override
//   public String getAction() {
//     return "SendLocalList";
//   }
// }


import eu.chargetime.ocpp.model.Confirmation;
import eu.chargetime.ocpp.model.Request;
import eu.chargetime.ocpp.model.localauthlist.*;
import java.util.HashSet;
import java.util.UUID;
import eu.chargetime.ocpp.feature.Feature;
import eu.chargetime.ocpp.feature.GetLocalListVersionFeature;
import eu.chargetime.ocpp.feature.ProfileFeature;
import eu.chargetime.ocpp.feature.SendLocalListFeature;
package eu.chargetime.ocpp.feature.profile;
/*
   ChargeTime.eu - Java-OCA-OCPP

   MIT License

   Copyright (C) 2016-2018 Thomas Volden <tv@chargetime.eu>
   Copyright (C) 2019 Kevin Raddatz <kevin.raddatz@valtech-mobility.com>

   Permission is hereby granted, free of charge, to any person obtaining a copy
   of this software and associated documentation files (the "Software"), to deal
   in the Software without restriction, including without limitation the rights
   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   copies of the Software, and to permit persons to whom the Software is
   furnished to do so, subject to the following conditions:

   The above copyright notice and this permission notice shall be included in all
   copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   SOFTWARE.
*/


public class ServerLocalAuthListProfile implements Profile {

  private HashSet<Feature> featureList;

  public ServerLocalAuthListProfile() {
    featureList = new HashSet<>();
    featureList.add(new GetLocalListVersionFeature(this));
    featureList.add(new SendLocalListFeature(this));
  }

  @Override
  public ProfileFeature[] getFeatureList() {
    return featureList.toArray(new ProfileFeature[0]);
  }

  @Override
  public Confirmation handleRequest(UUID sessionIndex, Request request) {
// Path: ocpp-common/src/main/java/eu/chargetime/ocpp/feature/ProfileFeature.java
// public abstract class ProfileFeature implements Feature {
// 
//   private Profile profile;
// 
//   /**
//    * Creates link back to the {@link Profile}.
//    *
//    * @param ownerProfile the {@link Profile} that owns the function.
//    */
//   public ProfileFeature(Profile ownerProfile) {
//     if (ownerProfile == null) {
//       throw new IllegalArgumentException("need non-null profile");
//     }
//     profile = ownerProfile;
//   }
// 
//   /**
//    * Calls {@link Profile} to handle a {@link Request}.
//    *
//    * @param sessionIndex source of the request.
//    * @param request the {@link Request} to be handled.
//    * @return the {@link Confirmation} to be send back.
//    */
//   public Confirmation handleRequest(UUID sessionIndex, Request request) {
//     return profile.handleRequest(sessionIndex, request);
//   }
// }
// 
// Path: ocpp-v1_6/src/main/java/eu/chargetime/ocpp/feature/SendLocalListFeature.java
// public class SendLocalListFeature extends ProfileFeature {
// 
//   public SendLocalListFeature(Profile ownerProfile) {
//     super(ownerProfile);
//   }
// 
//   @Override
//   public Class<? extends Request> getRequestType() {
//     return SendLocalListRequest.class;
//   }
// 
//   @Override
//   public Class<? extends Confirmation> getConfirmationType() {
//     return SendLocalListConfirmation.class;
//   }
// 
//   @Override
//   public String getAction() {
//     return "SendLocalList";
//   }
// }


// Path: ocpp-v1_6/src/main/java/eu/chargetime/ocpp/feature/profile/ServerLocalAuthListProfile.java
import eu.chargetime.ocpp.model.Confirmation;
import eu.chargetime.ocpp.model.Request;
import eu.chargetime.ocpp.model.localauthlist.*;
import java.util.HashSet;
import java.util.UUID;
import eu.chargetime.ocpp.feature.Feature;
import eu.chargetime.ocpp.feature.GetLocalListVersionFeature;
import eu.chargetime.ocpp.feature.ProfileFeature;
import eu.chargetime.ocpp.feature.SendLocalListFeature;

package eu.chargetime.ocpp.feature.profile;
/*
   ChargeTime.eu - Java-OCA-OCPP

   MIT License

   Copyright (C) 2016-2018 Thomas Volden <tv@chargetime.eu>
   Copyright (C) 2019 Kevin Raddatz <kevin.raddatz@valtech-mobility.com>

   Permission is hereby granted, free of charge, to any person obtaining a copy
   of this software and associated documentation files (the "Software"), to deal
   in the Software without restriction, including without limitation the rights
   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   copies of the Software, and to permit persons to whom the Software is
   furnished to do so, subject to the following conditions:

   The above copyright notice and this permission notice shall be included in all
   copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   SOFTWARE.
*/


public class ServerLocalAuthListProfile implements Profile {

  private HashSet<Feature> featureList;

  public ServerLocalAuthListProfile() {
    featureList = new HashSet<>();
    featureList.add(new GetLocalListVersionFeature(this));
    featureList.add(new SendLocalListFeature(this));
  }

  @Override
  public ProfileFeature[] getFeatureList() {
    return featureList.toArray(new ProfileFeature[0]);
  }

  @Override
  public Confirmation handleRequest(UUID sessionIndex, Request request) {
    return null;