Boolean anyAuthenticated = ProfileServiceUtil.getSimpleValue(
managedObject, "anyAuthenticated", Boolean.class); //$NON-NLS-1$
String description = ProfileServiceUtil.getSimpleValue(
managedObject, "description", String.class); //$NON-NLS-1$
configuration.put(new PropertySimple("name", dataRoleName)); //$NON-NLS-1$
configuration.put(new PropertySimple("anyAuthenticated", //$NON-NLS-1$
anyAuthenticated));
configuration
.put(new PropertySimple("description", description)); //$NON-NLS-1$
PropertyList mappedRoleNameList = new PropertyList(
"mappedRoleNameList"); //$NON-NLS-1$
configuration.put(mappedRoleNameList);
ManagedProperty mappedRoleNames = managedObject
.getProperty("mappedRoleNames"); //$NON-NLS-1$
if (mappedRoleNames != null) {
CollectionValueSupport props = (CollectionValueSupport) mappedRoleNames
.getValue();
for (MetaValue mappedRoleName : props.getElements()) {
PropertyMap mappedRoleNameMap = null;
try {
mappedRoleNameMap = new PropertyMap(
"map", //$NON-NLS-1$
new PropertySimple(
"name", (ProfileServiceUtil.stringValue(mappedRoleName)))); //$NON-NLS-1$
} catch (Exception e) {
final String msg = "Exception in loadResourceConfiguration(): " + e.getMessage(); //$NON-NLS-1$
LOG.error(msg, e);
}