public WebServiceYdkAccount getYdkAccountById(Long id) {
    // TODO Auto-generated method stub
    WebServiceYdkAccount result = new WebServiceYdkAccount();
    if (id == null) {
      result.getOs().setIsSuccessful(false);
      result.getOs().setFailureReason("Null input Id");
      return result;
    }
    YdkAccount instance = accountDbMngr.getYdkAccount(id);
    if (instance == null) {
      result.getOs().setIsSuccessful(false);
      result.getOs().setFailureReason("YdkAccount not found by id: " + id);
      return result;
    }

    result.setYdkAccount(instance);
    // Eager get
    instance.getYdkRole().getMask();
    instance.getYdkRole().setYdkAccounts(null);
    return result;
  }
  public WebServiceYdkAccount getYdkAccountByName(String name) {
    // TODO Auto-generated method stub
    WebServiceYdkAccount result = new WebServiceYdkAccount();
    if (name == null) {
      result.getOs().setIsSuccessful(false);
      result.getOs().setFailureReason("Null input Id");
      return result;
    }
    YdkAccount instance = accountDbMngr.getYdkAccountByName(name);
    if (instance == null) {
      result.getOs().setIsSuccessful(false);
      result.getOs().setFailureReason("YdkAccount not found by username: " + name);
      return result;
    }

    // Eager get
    instance.getYdkRole().getMask();
    instance.getYdkRole().setYdkAccounts(null);

    result.setYdkAccount(instance);
    return result;
  }