// 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);
//   }
// }


import eu.chargetime.ocpp.feature.Feature;
import eu.chargetime.ocpp.feature.ProfileFeature;
import eu.chargetime.ocpp.feature.TriggerMessageFeature;
import eu.chargetime.ocpp.model.Confirmation;
import eu.chargetime.ocpp.model.Request;
import eu.chargetime.ocpp.model.remotetrigger.TriggerMessageRequest;
import eu.chargetime.ocpp.model.remotetrigger.TriggerMessageRequestType;
import java.util.HashSet;
import java.util.UUID;
package eu.chargetime.ocpp.feature.profile;


/*
ChargeTime.eu - Java-OCA-OCPP
Copyright (C) 2017 Emil Christopher Solli Melar <emil@iconsultable.no>
Copyright (C) 2019 Kevin Raddatz <kevin.raddatz@valtech-mobility.com>

MIT License

Copyright (C) 2017 Emil Christopher Solli Melar
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 ServerRemoteTriggerProfile implements Profile {

  private HashSet<Feature> features;

  public ServerRemoteTriggerProfile() {

    features = new HashSet<>();
    features.add(new TriggerMessageFeature(this));
  }

  @Override
// 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/profile/ServerRemoteTriggerProfile.java
import eu.chargetime.ocpp.feature.Feature;
import eu.chargetime.ocpp.feature.ProfileFeature;
import eu.chargetime.ocpp.feature.TriggerMessageFeature;
import eu.chargetime.ocpp.model.Confirmation;
import eu.chargetime.ocpp.model.Request;
import eu.chargetime.ocpp.model.remotetrigger.TriggerMessageRequest;
import eu.chargetime.ocpp.model.remotetrigger.TriggerMessageRequestType;
import java.util.HashSet;
import java.util.UUID;

package eu.chargetime.ocpp.feature.profile;


/*
ChargeTime.eu - Java-OCA-OCPP
Copyright (C) 2017 Emil Christopher Solli Melar <emil@iconsultable.no>
Copyright (C) 2019 Kevin Raddatz <kevin.raddatz@valtech-mobility.com>

MIT License

Copyright (C) 2017 Emil Christopher Solli Melar
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 ServerRemoteTriggerProfile implements Profile {

  private HashSet<Feature> features;

  public ServerRemoteTriggerProfile() {

    features = new HashSet<>();
    features.add(new TriggerMessageFeature(this));
  }

  @Override
  public ProfileFeature[] getFeatureList() {