Ejemplo n.º 1
0
 private <T extends ShadowType> PrismObject<T> wrapInShadow(
     Class<T> type, ResourceAttributeContainer resourceObject) throws SchemaException {
   PrismObjectDefinition<T> shadowDefinition = getShadowDefinition(type);
   PrismObject<T> shadow = shadowDefinition.instantiate();
   resourceObject.setElementName(ShadowType.F_ATTRIBUTES);
   shadow.getValue().add(resourceObject);
   return shadow;
 }