profile.addField(DnComponents.DNEMAIL);
profile.addField(DnComponents.ORGANIZATIONUNIT);
profile.setUse(DnComponents.ORGANIZATIONUNIT, 0, true);
profile.setValue(DnComponents.ORGANIZATIONUNIT, 0, "FooOrgUnit");
profile.addField(DnComponents.ORGANIZATION);
profile.addField(DnComponents.COUNTRY);
profile.setValue(EndEntityProfile.AVAILCAS, 0, Integer.toString(SecConst.ALLCAS));
profile.setAllowMergeDnWebServices(true);
endEntityProfileSession.addEndEntityProfile(admin, "TESTMERGEWITHWS", profile);
int profileId = endEntityProfileSession.getEndEntityProfileId(admin, "TESTMERGEWITHWS");