private void addUniqueIdToHashtable(Hashtable<String, Object> hashtable, String mapUserName) {

        String realm = "defaultRealm";
        try {
            realm = securityServiceRef.getService().getUserRegistryService().getUserRegistry().getRealm();
        } catch (RegistryException e) {
            //do nothing
        }
        String uniqueID = new StringBuffer("user:").append(realm).append("/").append(mapUserName).toString();
        hashtable.put(AttributeNameConstants.WSCREDENTIAL_UNIQUEID, uniqueID);
    }
private void addUniqueIdToHashtable ( Hashtable < String , Object > hashtable , String mapUserName ) { String realm = "defaultRealm" ; try { realm = securityServiceRef . getService ( ) . getUserRegistryService ( ) . getUserRegistry ( ) . getRealm ( ) ; } catch ( RegistryException e ) { } String uniqueID = new StringBuffer ( "user:" ) . append ( realm ) . append ( "/" ) . append ( mapUserName ) . toString ( ) ; hashtable . put ( AttributeNameConstants . WSCREDENTIAL_UNIQUEID , uniqueID ) ; }
@param hashtable
@param mapUserName