public OperationStatus assignYdkRole(Long ydkRoleId, Long id) {
    // TODO Auto-generated method stub
    OperationStatus os = new OperationStatus();
    if (id == null || ydkRoleId == null) {
      os.setIsSuccessful(false);
      os.setFailureReason("Null input");
      return os;
    }
    YdkAccount ydkAccount = accountDbMngr.getYdkAccount(id);
    if (ydkAccount == null) {
      os.setIsSuccessful(false);
      os.setFailureReason("Could not find YdkAccount by id : " + id);
      return os;
    }

    YdkRole ydkRole = accountDbMngr.getYdkRole(id);
    if (ydkRole == null) {
      os.setIsSuccessful(false);
      os.setFailureReason("Could not find YdkRole by id : " + ydkRoleId);
      return os;
    }

    ydkAccount.setYdkRole(ydkRole);
    accountDbMngr.updateYdkAccount(ydkAccount);
    return os;
  }
 public OperationStatus updateYdkAccount(WebServiceYdkAccount instance) {
   OperationStatus os = new OperationStatus();
   if (instance == null || instance.getYdkAccount() == null) {
     os.setIsSuccessful(false);
     os.setFailureReason("Null input");
     return os;
   }
   // TODO some logic book
   accountDbMngr.updateYdkAccount(instance.getYdkAccount());
   return os;
 }
  public OperationStatus deactiveYdkAccount(Long id) {
    // TODO Auto-generated method stub
    OperationStatus os = new OperationStatus();
    YdkAccount ydkAccount = accountDbMngr.getYdkAccount(id);

    if (ydkAccount == null) {
      os.setIsSuccessful(false);
      os.setFailureReason("Could not find YdkAccount by id : " + id);
      return os;
    }

    ydkAccount.setIsActived(false);
    accountDbMngr.updateYdkAccount(ydkAccount);
    return os;
  }