def METHOD_NAME(self, context, configurationAttributes):
    print "Idp extension. Method: updateAttributes"
    if self.sourceAttr is None or self.targetAttr is None:
        return True 
    sourceIdpAttr = context.getIdpAttributeMap().get(self.sourceAttr)
    if sourceIdpAttr is not None:
        context.getIdpAttributeMap().remove(self.sourceAttr)
        targetIdpAttr = IdPAttribute(self.targetAttr)
        targetIdpAttr.setValues(sourceIdpAttr.getValues())
        context.getIdpAttributeMap().put(self.targetAttr,targetIdpAttr)
    return True