@Nonnull
  @ReturnsMutableCopy
  public ICommonsOrderedMap <String, UserDataObject> confirmUploadedFiles (@Nullable final String... aFieldNames)
  {
    final ICommonsOrderedMap <String, UserDataObject> ret = new CommonsLinkedHashMap <> ();
    if (aFieldNames != null)
    {
      m_aRWLock.writeLocked ( () -> {
        for (final String sFieldName : aFieldNames)
        {
          // Remove an eventually existing old UDO
          final TemporaryUserDataObject aUDO = m_aMap.remove (sFieldName);
          if (aUDO != null)
          {
            LOGGER.info ("Confirmed uploaded file " + aUDO);
            // Convert from temporary to real UDO
            ret.put (sFieldName, new UserDataObject (aUDO.getPath ()));
          }
        }
      });
    }
    return ret;
  }
@ Nonnull @ ReturnsMutableCopy public ICommonsOrderedMap < String , UserDataObject > confirmUploadedFiles ( @ Nullable final String ... aFieldNames ) { final ICommonsOrderedMap < String , UserDataObject > ret = new CommonsLinkedHashMap < > ( ) ; if ( aFieldNames != null ) { m_aRWLock . writeLocked ( ( ) -> { for ( final String sFieldName : aFieldNames ) { final TemporaryUserDataObject aUDO = m_aMap . remove ( sFieldName ) ; if ( aUDO != null ) { LOGGER . info ( "Confirmed uploaded file " + aUDO ) ; ret . put ( sFieldName , new UserDataObject ( aUDO . getPath ( ) ) ) ; } } } ) ; } return ret ; }
Confirm the uploaded files with the passed field names.

@param aFieldNames
The field names to be confirmed. May be <code>null</code>.
@return A map from the passed field name to the (non-temporary) user data
objects for all resolved IDs. Never <code>null</code>. Field names
that could not be resolved are not returned. If a field name is
contained more than once, it is returned only once.
@see #cancelUploadedFiles(String...)