question: public void unassignServices ( String universalId , Set serviceNames ) throws AMConsoleException { if ( ( serviceNames != null ) && ! serviceNames . isEmpty ( ) ) { String [ ] params = new String [ 2 ] ; params [ 0 ] = universalId ; String currentSvc = "" ; try { AMIdentity amid = IdUtils . getIdentity ( getUserSSOToken ( ) , universalId ) ; for ( Iterator iter = serviceNames . iterator ( ) ; iter . hasNext ( ) ; ) { currentSvc = ( String ) iter . next ( ) ; params [ 1 ] = currentSvc ; logEvent ( "ATTEMPT_IDENTITY_UNASSIGN_SERVICE" , params ) ; amid . unassignService ( currentSvc ) ; logEvent ( "SUCCEED_IDENTITY_UNASSIGN_SERVICE" , params ) ; } } catch ( SSOException e ) { String [ ] paramsEx = { universalId , currentSvc , getErrorString ( e ) } ; logEvent ( "SSO_EXCEPTION_IDENTITY_UNASSIGN_SERVICE" , paramsEx ) ; debug . warning ( "EntitiesModelImpl.unassignServices" , e ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } catch ( IdRepoException e ) { String [ ] paramsEx = { universalId , currentSvc , getErrorString ( e ) } ; logEvent ( "IDM_EXCEPTION_IDENTITY_UNASSIGN_SERVICE" , paramsEx ) ; debug . warning ( "EntitiesModelImpl.unassignServices" , e ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } } }
target:  Unassigns services from an entity.