try {
pwriter = new PrintWriter(new FileOutputStream(beSecurity));
} catch (FileNotFoundException e) {
throw new InstallationFailedException(e.getMessage(), e);
}
BESecurityConfig becfg = new BESecurityConfig();
becfg.setDefaultConfig(new DefaultRoleConfig());
becfg.setInternalBasicAuth(new Boolean(apiaAuth));
becfg.setInternalIPList(ipList);
becfg.setInternalPassword("changeme");
becfg.setInternalSSL(new Boolean(apiaSSL));
becfg.setInternalUsername("fedoraIntCallUser");
becfg.write(true, true, pwriter);
pwriter.close();
}