private AccountRangeEntitlementType giveAccountRangeEntitlement(
     AccountRangeEntitlementTypeEnum accountRangeEntitlementTypeEnum) {
   AccountRangeEntitlementType accountRangeEntitlement =
       objectFactory.createAccountRangeEntitlementType();
   accountRangeEntitlement.setFromAccount(accountRangeEntitlementTypeEnum.getFromAccount());
   accountRangeEntitlement.setToAccount(accountRangeEntitlementTypeEnum.getToAccount());
   return accountRangeEntitlement;
 }
 private FunctionEntitlementType giveFuntionEntitlement(
     FuntionEntitlementEnum functionEntitlementEnum) {
   FunctionEntitlementType createFunctionEntitlementType =
       objectFactory.createFunctionEntitlementType();
   createFunctionEntitlementType.setFunctionName(functionEntitlementEnum.getFunctionName());
   createFunctionEntitlementType.setReadUpdateAccess(
       functionEntitlementEnum.getReadUpdateAccess());
   createFunctionEntitlementType.setAccessLevel(null);
   return createFunctionEntitlementType;
 }
  @Override
  public GetKopsIdInfoResponseType getKopsIdInfo(GetKopsIdInfoRequestType getKopsIdInfoRequest) {

    ObjectFactory factory = new ObjectFactory();

    GetKopsIdInfoResponseType getKopsIdInfoResponseType = factory.createGetKopsIdInfoResponseType();
    KopsIdInfoType kopsIdInfoType = new KopsIdInfoType();
    kopsIdInfoType.setKopsID("BSZTCC3A");
    kopsIdInfoType.setFullName("CASHIAN CORRIEA");
    kopsIdInfoType.setFirstName("CORRIEA");
    kopsIdInfoType.setLastName("CASHIAN");
    kopsIdInfoType.setSnacsID("2196586");
    kopsIdInfoType.setSID("I083987");
    kopsIdInfoType.setRelmId("PROF");
    kopsIdInfoType.setPrimaryInd(YNOnlyIndicatorTypeEnum.Y);
    XMLGregorianCalendar creationDate;
    XMLGregorianCalendar expirationDate;
    try {
      DatatypeFactory datatypeFatoryInstance = DatatypeFactory.newInstance();
      creationDate = datatypeFatoryInstance.newXMLGregorianCalendar("2009-09-24-04:00");
      expirationDate = datatypeFatoryInstance.newXMLGregorianCalendar("3000-12-31-05:00");
    } catch (DatatypeConfigurationException e) {
      creationDate = null;
      expirationDate = null;
    }
    kopsIdInfoType.setCreationDate(creationDate);
    kopsIdInfoType.setExpirationDate(expirationDate);

    getKopsIdInfoResponseType.getKopsIdInfo().add(kopsIdInfoType);

    com.bearstearns.bsc_status.v1.ObjectFactory factoryStatus =
        new com.bearstearns.bsc_status.v1.ObjectFactory();
    StatusType statusType = factoryStatus.createStatusType();
    statusType.setStatusType(StatusTypeType.SUCCESS);

    getKopsIdInfoResponseType.setStatus(statusType);

    return getKopsIdInfoResponseType;
  }
  @Override
  public GroupEntitlementResponseType groupEntitlement(
      GroupEntitlementRequestType groupEntitlementRequest) {

    GroupEntitlementResponseType createGroupEntitlementResponseType =
        objectFactory.createGroupEntitlementResponseType();

    createGroupEntitlementResponseType.setGroupName(giveGroupName());

    // FunctionEntitlement
    List<FunctionEntitlementType> giveFunctionEntitlementList = givecFuntionEntitlementList();

    createGroupEntitlementResponseType.getFunctionEntitlement().addAll(giveFunctionEntitlementList);

    // DataEntitlement
    List<DataEntitlementType> dataEntitlementList = giveDataEntitlementList();
    createGroupEntitlementResponseType.getDataEntitlement().addAll(dataEntitlementList);

    // AccountEntitlement
    List<AccountRangeEntitlementType> accountRangeEntitlementList =
        giveAccountRangeEntitlementList();

    createGroupEntitlementResponseType.getAccountEntitlement().addAll(accountRangeEntitlementList);

    //		AccountEntitlementsType createAccountEntitlementsType =
    // objectFactory.createAccountEntitlementsType();
    //		createAccountEntitlementsType.getRemoveAccountEntitlement().add(accountRangeEntitlement);//

    com.bearstearns.bsc_status.v1.ObjectFactory factoryStatus =
        new com.bearstearns.bsc_status.v1.ObjectFactory();
    StatusType statusType = factoryStatus.createStatusType();
    statusType.setStatusType(StatusTypeType.SUCCESS);
    createGroupEntitlementResponseType.setStatus(statusType);

    return createGroupEntitlementResponseType;
  }
 private DataEntitlementType giveDataEntitlement(DataEntitlementTypeEnum dataEntitlementType) {
   DataEntitlementType createDataEntitlementType = objectFactory.createDataEntitlementType();
   createDataEntitlementType.setName(dataEntitlementType.getName());
   createDataEntitlementType.getStringValue().addAll(dataEntitlementType.getStringValues());
   return createDataEntitlementType;
 }