* Creates the 'Local' Hard Token Issuer
*
* @throws Exception
*/
private void createLocalHardTokenIssuer(int admingroupid) throws Exception {
HardTokenIssuer localissuer = new HardTokenIssuer();
localissuer.setDescription("Issuer created by installation script, used to create the first administration token");
ArrayList<Integer> availableprofiles = new ArrayList<Integer>();
availableprofiles.add(Integer.valueOf(ejb.getHardTokenSession().getHardTokenProfileId(getAdmin(), ADMINTOKENPROFILENAME)));
localissuer.setAvailableHardTokenProfiles(availableprofiles);
this.ejb.getHardTokenSession().addHardTokenIssuer(getAdmin(), ISSUERALIAS, admingroupid, localissuer);
}