me.setBackendPrincipal(true);
me.setAttributeValue(MapElement.BACKEND_PRINCIPAL, 0, "user-name", ""+i); //NOI18N
me.setAttributeValue(MapElement.BACKEND_PRINCIPAL, 0, "password", ""+i); //NOI18N
me.setAttributeValue(MapElement.BACKEND_PRINCIPAL, 0, "credential", ""+i); //NOI18N
for (int j = 0; j < rowCount; j++) {
Principal p = new Principal();
p.setAttributeValue("user-name", ""+unameVal); //NOI18N
unameVal++;
me.addPrincipal(p);
}
rm.addMapElement(me);